Activity log for bug #1227313

Date Who What changed Old value New value Message
2013-09-18 18:56:14 Andre Nathan bug added bug
2013-09-18 19:49:03 Launchpad Janitor lxc (Ubuntu): status New Confirmed
2013-09-18 19:49:42 Michel Machado bug added subscriber Michel Machado
2013-09-27 20:12:29 Serge Hallyn lxc (Ubuntu): importance Undecided Medium
2013-09-27 20:12:35 Serge Hallyn nominated for series Ubuntu Raring
2013-09-27 20:12:35 Serge Hallyn bug task added lxc (Ubuntu Raring)
2013-09-27 20:34:34 Serge Hallyn description The lxc-start package reads its apparmor profile from /proc/$PID/attr/current but does not remove the trailing newline character. When trying to run an unconfined container, this causes comparisons with the "unconfined" string in the source code to fail, and the apparmor profile is set, even when there's no need to do so. This, in turn, makes it impossible to run containers with a read-only /proc filesystem. Ubuntu release: Description: Ubuntu 13.04 Release: 13.04 Package being used: lxc: Installed: 0.9.0-0ubuntu3.5 Candidate: 0.9.0-0ubuntu3.5 Version table: *** 0.9.0-0ubuntu3.5 0 500 http://archive.ubuntu.com/ubuntu/ raring-proposed/universe amd64 Packages 100 /var/lib/dpkg/status 0.9.0-0ubuntu3.4 0 500 ftp://repos.mz.digirati.com.br/ubuntu/ raring-updates/universe amd64 Packages 0.9.0-0ubuntu3 0 500 ftp://repos.mz.digirati.com.br/ubuntu/ raring/universe amd64 Packages What is expected to happen: A container with a read-only /proc filesystem should start successfully. What happened instead: lxc-start fails with "Read-only file system - failed to change apparmor profile to unconfined" ========================================= SRU Justification: 1. Impact: cannot start containers with read-only proc 2. Development fix: remove \n from /proc/pid/attr/current contents. 3. Stable fix: cherrypick development fix. 4. Test case: a. lxc-create -t ubuntu -n u1 b. sudo sed -i '/proc/s/nosuid/&,ro/' /var/lib/lxc/u1/fstab c. echo "lxc.aa_profile = unconfined" | sudo tee -a /var/lib/lxc/u1/config d. apparmor_parser -R /etc/apparmor.d/usr.bin.lxc-start e. sudo lxc-start -n u1 5. Regression potential: none, this only makes us ignore the \n at end of /proc/pid/attr/current file ========================================= The lxc-start package reads its apparmor profile from /proc/$PID/attr/current but does not remove the trailing newline character. When trying to run an unconfined container, this causes comparisons with the "unconfined" string in the source code to fail, and the apparmor profile is set, even when there's no need to do so. This, in turn, makes it impossible to run containers with a read-only /proc filesystem. Ubuntu release: Description: Ubuntu 13.04 Release: 13.04 Package being used: lxc:   Installed: 0.9.0-0ubuntu3.5   Candidate: 0.9.0-0ubuntu3.5   Version table:  *** 0.9.0-0ubuntu3.5 0         500 http://archive.ubuntu.com/ubuntu/ raring-proposed/universe amd64 Packages         100 /var/lib/dpkg/status      0.9.0-0ubuntu3.4 0         500 ftp://repos.mz.digirati.com.br/ubuntu/ raring-updates/universe amd64 Packages      0.9.0-0ubuntu3 0         500 ftp://repos.mz.digirati.com.br/ubuntu/ raring/universe amd64 Packages What is expected to happen: A container with a read-only /proc filesystem should start successfully. What happened instead: lxc-start fails with "Read-only file system - failed to change apparmor profile to unconfined"
2013-09-27 20:34:45 Serge Hallyn bug added subscriber Ubuntu Stable Release Updates Team
2013-09-27 20:34:56 Serge Hallyn lxc (Ubuntu Raring): status New In Progress
2013-09-27 20:34:59 Serge Hallyn lxc (Ubuntu Raring): importance Undecided Medium
2013-09-27 20:36:08 Serge Hallyn lxc (Ubuntu): status Confirmed Fix Committed
2013-09-27 20:57:17 Launchpad Janitor lxc (Ubuntu): status Fix Committed Fix Released
2013-09-30 00:53:16 Launchpad Janitor branch linked lp:ubuntu/lxc
2013-10-10 16:54:09 Brian Murray lxc (Ubuntu Raring): status In Progress Fix Committed
2013-10-10 16:54:12 Brian Murray bug added subscriber SRU Verification
2013-10-10 16:54:15 Brian Murray tags verification-needed
2013-10-11 17:34:24 Andre Nathan tags verification-needed verification-done
2013-10-24 18:46:52 Launchpad Janitor lxc (Ubuntu Raring): status Fix Committed Fix Released
2013-10-24 18:46:56 Brian Murray removed subscriber Ubuntu Stable Release Updates Team