[Bug 1428490] Re: AppArmor vs unix socket inside LXC containers

2016-02-18 Thread John Johansen
Toby, what distro, release and kernel are you using? And would you be willing to try a custom test kernel? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1428490 Title: AppArmor vs

[Bug 1446906] Re: lxc container with postfix, permission denied on mailq

2015-12-18 Thread John Johansen
Kernels with version 3 of the fix can be found at http://people.canonical.com/~jj/lp1446906/ please test and leave feedback as to whether this fixes the issue -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1527374] Re: privilege escalation on attach through ptrace

2015-12-18 Thread John Johansen
** Information type changed from Private Security to Public Security -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1527374 Title: privilege escalation on attach through ptrace To

[Bug 1446906] Re: lxc container with postfix, permission denied on mailq

2015-11-26 Thread John Johansen
Please try the test kernels at http://people.canonical.com/~jj/lp1446906/ -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1446906 Title: lxc container with postfix, permission denied

[Bug 1446906] Re: lxc container with postfix, permission denied on mailq

2015-11-19 Thread John Johansen
Making this bug NOT a duplicate of Bug 1390223, which will be for just the bad unix_fs macro fix that has already been committed. This one will track the deleted entry/socket shutdown revalidation issue. ** This bug is no longer a duplicate of bug 1390223 Apparmor related regression on access

[Bug 1446906] Re: lxc container with postfix, permission denied on mailq

2015-11-18 Thread John Johansen
*** This bug is a duplicate of bug 1390223 *** https://bugs.launchpad.net/bugs/1390223 Alright, so this is not the disconnected path issue I thought it was, I am looking into it more. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed

[Bug 1446906] Re: lxc container with postfix, permission denied on mailq

2015-11-18 Thread John Johansen
*** This bug is a duplicate of bug 1390223 *** https://bugs.launchpad.net/bugs/1390223 Alright, this is failing the way it is because it is a race on the socket being shutdown. If the mediate_deleted flag was removed from the profile, an additional info flag would show up in the DENIED

[Bug 1446906] Re: lxc container with postfix, permission denied on mailq

2015-11-18 Thread John Johansen
*** This bug is a duplicate of bug 1390223 *** https://bugs.launchpad.net/bugs/1390223 yes, sorry I'm not sure why I missed adding the leading / -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1446906] Re: lxc container with postfix, permission denied on mailq

2015-11-17 Thread John Johansen
*** This bug is a duplicate of bug 1390223 *** https://bugs.launchpad.net/bugs/1390223 The issue is that the path is disconnected from the namespace. Currently the only way to deal with this is by using the attach_disconnect flag in the profile, and then place rules for the attached files

[Bug 1504781] Re: lxc-test-ubuntu hangs forever in trusty-proposed with Linux 3.13.0-66: AppArmor denies /dev/ptmx mounting

2015-10-14 Thread John Johansen
yes, UBUNTU: SAUCE: (no-up) apparmor: fix mount not handling disconnected paths is causing the regression. However reverting this fix will cause issues for Bug 1496430, which was blocking a fix for a CVE. The correct solution is to update the profile. -- You received this bug

[Bug 1504781] Re: lxc-test-ubuntu hangs forever in trusty-proposed with Linux 3.13.0-66: AppArmor denies /dev/ptmx mounting

2015-10-14 Thread John Johansen
To be specific I added the rule mount options=(rw,bind) /dev/pts/ptmx -> /dev/ptmx, to the lxc-start profile -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1504781 Title:

[Bug 1501966] Re: support changing Apparmor hats

2015-10-02 Thread John Johansen
The Immunix openssh patch for subdomain (apparmor before it was apparmor) ** Patch added: "openssh-3.8p1-subdomain-privsep-v3.patch" https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1501966/+attachment/4481853/+files/openssh-3.8p1-subdomain-privsep-v3.patch -- You received this bug

[Bug 1501966] Re: support changing Apparmor hats

2015-10-02 Thread John Johansen
It never was, and I don't think the patch ever made it into Novell/Suse openssh either. I think the only place it landed was in Immunix 7.3 on openssh 3.8 (this is pre-apparmor being know as subdomain at the time) The patch would have to be reworked to work with apparmor, and that isn't even

[Bug 1487536] Re: AppArmor bad parse on 14.04 and MySQL 5.6

2015-09-22 Thread John Johansen
This is likely caused by one of the files in local/usr.sbin.mysqld that is included by the line #include the includes in the context of a profile body can not contain variable definitions at this time grep those files for tunables/home and unables/global to find out which file is

[Bug 1401148] Re: Re/starting an lxc container corrupts all network namespaces on the same physical host

2014-12-11 Thread John Johansen
Can you please attach the output of apparmor_parser -p /etc/apparmor.d/usr.bin.lxc-start -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1401148 Title: Re/starting an lxc container

[Bug 1357103] Re: apparmor denied a golang build inside a container

2014-08-15 Thread John Johansen
I have uploaded a kernel with the potential fix to http://people.canonical.com/~jj/lp1357103/ -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1357103 Title: apparmor denied a golang

[Bug 1357103] Re: apparmor denied a golang build inside a container

2014-08-14 Thread John Johansen
This looks like it might be caused by bug in path lookups and bind mount handling that I have a test patch for. I will build a test kernel for trusty (14.04). Please let me know if there are any other kernels you would like to test on. -- You received this bug notification because you are a

[Bug 1307473] Re: guest hang due to missing clock interrupt

2014-07-08 Thread John Johansen
Ondergetekende, can you provide further details to why you believe Bug #1326367 is causing this? Would you be willing to test a 3.11.0-24-generic kernel (reported stable) + the futex fix, or a chosen stable version of the 3.13 or 3.15 kernel with just the futex fix. To verify that the futex fix is

[Bug 1325468] Re: [systemd] container startup fails with AppArmor

2014-06-02 Thread John Johansen
The syntax allows for spaces or commas to separate items, because people kept using them. However list of items must be inside of parenthesis. mount options in (rw, slave), -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in

[Bug 969299] Re: apparmor prevents dpkg-divert and localedef from working in a container

2012-11-21 Thread John Johansen
Francesco, The mediate_deleted flag should fix the rejection shown in comment #12 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/969299 Title: apparmor prevents dpkg-divert and

[Bug 969299] Re: apparmor prevents dpkg-divert and localedef from working in a container

2012-11-21 Thread John Johansen
Serge, see comments on bug 970647, there is some progress but I have not found a specific bug affecting logging of this case. The larger fix which is the extended labeling, is in progress and will enter into the apparmor- dev ppa soon for testing. -- You received this bug notification because

[Bug 1061537] Re: invalid syntax in apparmor profile abstractions/lxc/container-base

2012-10-04 Thread John Johansen
** Package changed: lxc (Ubuntu) = apparmor (Ubuntu) ** Changed in: apparmor (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1061537 Title:

[Bug 1061537] Re: invalid syntax in apparmor profile abstractions/lxc/container-base

2012-10-04 Thread John Johansen
thankyou for reporting this, I can suggest a work around while you wait for a fix to logprof edit the /etc/apparmor.d/abstractions/lxc/container-base file and comment out the line that has capability, by changing it to # capability, do this to any line containing a mount rule too. mount

[Bug 987371] Re: unconfined containers are not starting

2012-04-23 Thread John Johansen
I have a test kernel at http://people.canonical.com/~jj/linux- image-3.2.0-23-generic_3.2.0-23.36~aa_amd64.deb and believe this to be the same as Bug #978038 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 925024] Re: apparmor makes it impossible to install postgresql-common on Precise

2012-03-20 Thread John Johansen
** Changed in: linux (Ubuntu) Status: In Progress = Fix Released -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/925024 Title: apparmor makes it impossible to install

[Bug 925028] Re: apparmor breaks lxc-start-ephemeral (apparmor+overlayfs returns -EINVAL)

2012-02-03 Thread John Johansen
I have uploaded some test kernels with a fix http://people.canonical.com/~jj/linux-image-3.2.0-12-generic_3.2.0-12.21~aadentry_amd64.deb http://people.canonical.com/~jj/linux-headers-3.2.0-12-generic_3.2.0-12.21~aadentry_amd64.deb -- You received this bug notification because you are a member

[Bug 915941] Re: overlayfs does not honor lxc-related permissions

2012-01-18 Thread John Johansen
** CVE removed: http://www.cve.mitre.org/cgi- bin/cvename.cgi?name=2012-0055 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/915941 Title: overlayfs does not honor lxc-related

[Bug 876968] Re: host Apparmor rules are applied to guests in spite of guests loading new rules

2011-10-18 Thread John Johansen
Well I won't agree the guest shouldn't have its own policy (it depends on your use case), but I do agree the host should be able to set a domain to protect it self from the guest, but until AppArmor supports policy stacking the solution is either or. The solution depends on what confinement is

[Bug 876968] Re: host Apparmor rules are applied to guests in spite of guests loading new rules

2011-10-18 Thread John Johansen
1. If the guest is to have its own policy, then the host needs to create a new policy namespace, and then it needs to transition the guest to the new namespace. Guest policy will then be loaded into the new namespace, and will not generally* conflict with system policy. That's great - can

[Bug 458521] Re: kvm crash when using virtio for network, hardy guest

2011-05-06 Thread John Johansen
I went back and retested this and it has already been fixed and released (commit fcbc05a1be0a7600153e78207dcb8b62fe753a4a), it was just not properly closed. mapl, If you are running an updated hardy guest running the 2.6.24-29 kernel this bug should not be a problem. Can you please provide

[Bug 684875] Re: Patch to Natty 2.6.37-virtual breaks non-EC2 users

2010-12-14 Thread John Johansen
So I have experimented with this a bit and so far I haven't gotten an instance to boot without the patch. It should work, so I just need to tinker with it more. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in ubuntu.

[Bug 588861] Re: pad block corrupted error when trying to register an image with 2.6.34 kernel

2010-06-21 Thread John Johansen
** Changed in: linux (Ubuntu Maverick) Assignee: (unassigned) = John Johansen (jjohansen) -- pad block corrupted error when trying to register an image with 2.6.34 kernel https://bugs.launchpad.net/bugs/588861 You received this bug notification because you are a member of Ubuntu Server Team

[Bug 453335] Re: apparmor complains about write access to a readonly file

2009-10-30 Thread John Johansen
** Changed in: linux (Ubuntu) Status: Triaged = In Progress ** Changed in: linux (Ubuntu Karmic) Status: Triaged = In Progress -- apparmor complains about write access to a readonly file https://bugs.launchpad.net/bugs/453335 You received this bug notification because you are a

[Bug 453335] Re: apparmor complains about write access to a readonly file

2009-10-28 Thread John Johansen
I have placed a test kernel at http://kernel.ubuntu.com/~jj/linux-image-2.6.31-14-generic_2.6.31-14.48~jj_amd64.deb -- apparmor complains about write access to a readonly file https://bugs.launchpad.net/bugs/453335 You received this bug notification because you are a member of Ubuntu Server

[Bug 361819] Re: Frequent random KVM host kernel OOPS

2009-10-13 Thread John Johansen
I haven't, though it is possible I just haven't spent enough time testing it in karmic yet. -- Frequent random KVM host kernel OOPS https://bugs.launchpad.net/bugs/361819 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to kvm in ubuntu. --

[Bug 361819] Re: Frequent random KVM host kernel OOPS

2009-09-14 Thread John Johansen
No I haven't been able to confirm it is a kernel issue yet, though I am planning on devoting some good time to this bug over the next couple days. -- Frequent random KVM host kernel OOPS https://bugs.launchpad.net/bugs/361819 You received this bug notification because you are a member of Ubuntu

[Bug 400349] Re: dhclient-script fails with apparmor

2009-07-20 Thread John Johansen
This turns out to be a regression in Jaunty, that is now fixed and behaving properly in Karmic ** Changed in: linux (Ubuntu Karmic) Status: Confirmed = Invalid -- dhclient-script fails with apparmor https://bugs.launchpad.net/bugs/400349 You received this bug notification because you are

[Bug 400349] Re: dhclient-script fails with apparmor

2009-07-20 Thread John Johansen
practice. ** Changed in: linux (Ubuntu Jaunty) Status: New = Confirmed ** Changed in: linux (Ubuntu Jaunty) Assignee: (unassigned) = John Johansen (jjohansen) -- dhclient-script fails with apparmor https://bugs.launchpad.net/bugs/400349 You received this bug notification because you

[Bug 400349] Re: dhclient-script fails with apparmor

2009-07-17 Thread John Johansen
I took a look at this and it is behaving correctly, though I haven't established whether it is due to a deviation in AppArmor's behavior, the scripts or both. The executable /sbin/dhclient3 does a Px transition (as specified in its profile) to /sbin/dhclient-script. /sbin/dhclient-script