[apparmor] [patch] apparmor-utils: setprofileflags() drops leading whitespace

Christian Boltz apparmor at cboltz.de
Mon Aug 8 21:46:13 UTC 2011


Hello,

the first openSUSE patch not related to profiles: genprof killed the 
spaces at the start of a subprofile. Guess who found this bug ;-)


From: Jeff Mahoney <jeffm at suse.com>                                                                                                                                             
Subject: apparmor-utils: setprofileflags() drops leading whitespace
References: bnc#480795

 setprofileflags() drops leading whitespace for subprofiles. writeheader()
 properly indents subprofiles 2 spaces per nesting level but when
 genprof sets the profile to enforce mode at completion, the whitespace
 is removed.

 This patch adds the whitespace globbing to the regexp and uses it to
 prefix the sub-profile with the correct spacing.

 Reported at: https://bugzilla.novell.com/show_bug.cgi?id=480795

Signed-off-by: Jeff Mahoney <jeffm at suse.com>


Regards,

Christian Boltz
-- 
Zu schön um nicht gesiggt zu werden ;-)   [Rainer Behrendt in dag°]
-------------- next part --------------
An embedded message was scrubbed...
From: Jeff Mahoney <jeffm at suse.com>
Subject: apparmor-utils: setprofileflags() drops leading whitespace
Date: no date
Size: 1720
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20110808/c3e1f7fc/attachment.mht>


More information about the AppArmor mailing list