]> git.proxmox.com Git - mirror_lxc.git/commit
apparmor.c: drop newline when reading current profile
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 10 Sep 2013 22:23:22 +0000 (17:23 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 11 Sep 2013 14:21:28 +0000 (09:21 -0500)
commitc3cb8580407b6f6b49949e6c58e175eec81db692
tree9c00f6f819d0c36b925f1560d26f642c7c18bb26
parentdd97408ae27220ceccf21357421e390345f3a688
apparmor.c: drop newline when reading current profile

Otherwise we fail to recognize if we are already unconfined.  Then,
if we want to *start* unconfined, and /proc is readonly, start fails
even though it should be able to proceed.

With this patch, that situation works.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Reported-by: Andre nathan <andre@digirati.com.br>
src/lxc/apparmor.c