[Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2017-05-15 Thread ChristianEhrhardt
Note to document this with the original issue: with a a more recent libvirt/qemu stack (2.5/2.8) or later (maybe before but that is not important) -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 (or both together) work fine now even without this rule. Upstream

[Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2016-03-08 Thread Arulraj
** Changed in: libvirt (Ubuntu Trusty) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in Ubuntu. https://bugs.launchpad.net/bugs/1342083 Title: "Failed to create chardev" due to

[Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2016-03-08 Thread Arulraj
** Changed in: libvirt (Ubuntu Trusty) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1342083 Title: "Failed to create chardev" due to apparmor DENIED

[Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2016-02-24 Thread Serge Hallyn
Oh, I misread, it's only a sub-policy that has cap-fowner. pt_chown is not exactly trusted to begin with, so I'm not sure i want to allow all vms to run it with cap-fowner. Not sure what the best way forward is. -- You received this bug notification because you are a member of Ubuntu Bugs,

[Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2016-02-24 Thread ravas
It's a VM (centos7-based system) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1342083 Title: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown" To manage

[Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2016-02-24 Thread Serge Hallyn
Thanks - that's very odd, since your file actually does include 'capability fowner', which is what the syslog says was denied. Are these qemu vms, or are they containers? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2016-02-24 Thread ravas
Hi Serge, libvirt-qemu file is attached on #23 :)Let me know what else you need. Note: I did remove the serial console hardware component from the VM since I didn't need it, and things worked ok after that. -- You received this bug notification because you are a member of Ubuntu Bugs,

Re: [Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2016-02-24 Thread Serge Hallyn
Hi, you should be able to work around it by adding capability fowner, to that file. Note that /etc/apparmor.d/abstractions/libvirt-qemu on my system already has that. I wonder whether your file libvirt-qemu abstractions file may be out of date? Can you paste it here? -- You received this

[Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2016-02-24 Thread ravas
Lubuntu 15.10 64bit, Lenovo t450s: I too see this issue. I have this fix in /etc/apparmor.d/abstractions /libvirt-qemu: # allow serial console backed by pts chardev (LP: #1342083) /usr/lib/pt_chown ix, owner @{PROC}/0-9*/fd/ r, but still see an apparmor issue in /var/log/kern.log.

[Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2016-01-07 Thread Serge Hallyn
I failed to reproduce the original problem, but the -proposed packages pass the qa regression tests in lp:qa-regression-tests. ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2015-10-05 Thread Timo Aaltonen
nevermind, my issue was caused by piuparts messing the /dev/pts mount permissions.. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1342083 Title: "Failed to create chardev" due to apparmor DENIED

[Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2015-10-04 Thread Timo Aaltonen
here you go ** Attachment added: "libvirt-qemu" https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1342083/+attachment/4484338/+files/libvirt-qemu -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2015-09-10 Thread Serge Hallyn
@tjaalton, can you show the contents of /etc/apparmor.d/abstractions/libvirt-qemu ? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1342083 Title: "Failed to create chardev" due to apparmor DENIED

[Bug 1342083] Re: "Failed to create chardev" due to apparmor DENIED execute of "/usr/lib/pt_chown"

2015-09-08 Thread Timo Aaltonen
I got this on current wily: [112561.711239] audit: type=1400 audit(1441743584.472:152): apparmor="DENIED" operation="open" profile="libvirt-e6d2c4fc-e234-4c35-f059-1bfa1fd67501" name="/proc/19534/fd/" pid=19534 comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=121 ouid=121

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-08-27 Thread Serge Hallyn
** Description changed: + + 1. Impact: cannot create pts-backed serial console + 2. Fix: grant qemu the needed permissions + 3. Test case: Create a vm definition with the xml in #7. + 4. Regression potential: there should be no regressions, however

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-08-27 Thread Brian Murray
Hello TJ, or anyone else affected, Accepted libvirt into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/libvirt/1.2.2-0ubuntu13.1.15 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-07-07 Thread Launchpad Bug Tracker
This bug was fixed in the package libvirt - 1.2.16-2ubuntu3 --- libvirt (1.2.16-2ubuntu3) wily; urgency=medium * debian/apparmor/libvirt-qemu: allow serial console backed by pts chardev (LP: #1342083) -- Chris J Arges chris.j.ar...@canonical.com Tue, 07 Jul 2015 16:38:17

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-07-07 Thread Launchpad Bug Tracker
This bug was fixed in the package libvirt - 1.2.16-2ubuntu3 --- libvirt (1.2.16-2ubuntu3) wily; urgency=medium * debian/apparmor/libvirt-qemu: allow serial console backed by pts chardev (LP: #1342083) -- Chris J Arges chris.j.ar...@canonical.com Tue, 07 Jul 2015 16:38:17

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-07-03 Thread Serge Hallyn
Ok, thanks - we will add that to the 1.2.16 merge, then we can SRU. Please note here if you need this SRU'd to vivid, or only to trusty. ** Changed in: libvirt (Ubuntu) Status: Incomplete = Triaged ** Also affects: libvirt (Ubuntu Trusty) Importance: Undecided Status: New --

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-07-03 Thread Serge Hallyn
Ok, thanks - we will add that to the 1.2.16 merge, then we can SRU. Please note here if you need this SRU'd to vivid, or only to trusty. ** Changed in: libvirt (Ubuntu) Status: Incomplete = Triaged ** Also affects: libvirt (Ubuntu Trusty) Importance: Undecided Status: New --

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-07-03 Thread Stephane Chazelas
Serge, I think the real question is how it can work for some people, without the /usr/lib/pt_chown ix, how can it work at all (for VMs with a serial port backed by a pty device, which should be the default with a typical libvirt deployment). -- You received this bug notification because you

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-07-03 Thread TJ
I made configuration changes when the issue originally occurred and despite reverting the ones I can identify cannot now reproduce the issue - although I suspect that is because I've forgotten one or more changes I made. -- You received this bug notification because you are a member of Ubuntu

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-07-03 Thread Stephane Chazelas
Hi Serge, sorry, I wasn't receiving email notifications (I thought it happened automatically when one ticked this affects me). I can't test on that system as it's in production now. I may be able to test on another system later, but probably not in July. It shouldn't be difficult to reproduce

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-07-01 Thread Serge Hallyn
(ping) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1342083 Title: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown To manage notifications about this bug go to:

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-06-18 Thread Serge Hallyn
Could you please test whether just adding /usr/lib/pt_chown ix, owner @{PROC}/0-9*/fd/ r, also suffices? ** Changed in: libvirt (Ubuntu) Status: Triaged = Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-06-18 Thread Serge Hallyn
** Changed in: libvirt (Ubuntu) Status: Incomplete = Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1342083 Title: Failed to create chardev due to apparmor DENIED execute of

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-06-09 Thread Stephane Chazelas
Adding: /usr/lib/pt_chown ix, owner @{PROC}/[0-9]*/fd/* r, To /etc/apparmor.d/abstractions/libvirt-qemu fixes the problem for me. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1342083 Title:

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-06-09 Thread Stephane Chazelas
pt_chown is executed when adding a serial console backed by a pts chardev: It is the same problem as https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/632696 serial type='pty' target port='0'/ /serial I get the same error on the second start of the VM after a reboot of

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-05-01 Thread Serge Hallyn
** Changed in: libvirt (Ubuntu) Status: Confirmed = Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1342083 Title: Failed to create chardev due to apparmor DENIED execute of

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-05-01 Thread Serge Hallyn
Note we are waiting for information to help debug this. Please do not re-mark this confirmed without first adding the information. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1342083 Title:

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-01-31 Thread martin suc
** Changed in: libvirt (Ubuntu) Status: Expired = Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in Ubuntu. https://bugs.launchpad.net/bugs/1342083 Title: Failed to create chardev due to apparmor DENIED

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2015-01-31 Thread martin suc
** Changed in: libvirt (Ubuntu) Status: Expired = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1342083 Title: Failed to create chardev due to apparmor DENIED execute of

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2014-11-09 Thread Launchpad Bug Tracker
[Expired for libvirt (Ubuntu) because there has been no activity for 60 days.] ** Changed in: libvirt (Ubuntu) Status: Incomplete = Expired -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in Ubuntu.

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2014-11-09 Thread Launchpad Bug Tracker
[Expired for libvirt (Ubuntu) because there has been no activity for 60 days.] ** Changed in: libvirt (Ubuntu) Status: Incomplete = Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2014-09-10 Thread Serge Hallyn
Thanks - this is odd, as neither libvirt nor qemu should be calling pt_chown. I cannot reproduce this locally. Could you please show screen-by-screen which options you are showing while creating the new VM in virt-manager? Also please show the results of: dpkg -l | grep libvirt dpkg -l | grep

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2014-09-05 Thread TJ
Serge, there is no XML since the failure occurred during the creation by virt-manager and it doesn't save a domain XML file if there's a creation failure, which was why I had to show the log outputs. -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2014-09-04 Thread Serge Hallyn
Please show the xml for the failing domain. ** Changed in: libvirt (Ubuntu) Status: New = Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1342083 Title: Failed to create chardev

[Bug 1342083] Re: Failed to create chardev due to apparmor DENIED execute of /usr/lib/pt_chown

2014-07-15 Thread Phillip Sz
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal: apport-collect BUGNUMBER When reporting bugs in the future please use apport by using 'ubuntu-bug' and