[apparmor] [PATCH] Profile unload fails on profile names with spaces
Christian Boltz
apparmor at cboltz.de
Sat Nov 27 22:10:39 GMT 2010
Hello,
long time ago I reported
https://bugzilla.novell.com/show_bug.cgi?id=510740
It was fixed in openSUSE 11.2 with an update, but obviously nobody
pushed the patch upstream, and therefore the bug is back in 11.3 and
even in the 2.5.1 packages in the security:apparmor buildservice repo.
Short summary: Unloading of profiles with a space in the name fails,
therefore "rcapparmor stop" (or restart) causes a funny message - and
the profile is still loaded.
You might want to read the bugreport (including comments 2 and 3) for
all the details - I learned a lot about bash's space handling of the
read command and what "echo: write error: No such file or directory"
(that's the exact error message) can mean besides the obvious meaning
while debugging this.
If you are on a hurry, just apply the attached patch to the file that is
installed as /lib/apparmor/rc.apparmor.functions.
Regards,
Christian Boltz
--
> warum plonkt ihr nicht leise?
Weil man gelegentlich eine tote Krähe beim Kornfeld aufhängen muß, damit
andere Krähen begreifen, daß der lange schwarze Stock nicht nur Bumm
macht, sondern auch Aua. [> Hans-Robert Wagner und Ratti in suse-linux]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rc.apparmor.functions-fix-spaces.diff
Type: text/x-patch
Size: 600 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/apparmor/attachments/20101127/31c18f6c/attachment.bin
More information about the AppArmor
mailing list