[Bug 480795] New: no whitespace at subprofile start
https://bugzilla.novell.com/show_bug.cgi?id=480795 Summary: no whitespace at subprofile start Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: AppArmor AssignedTo: jeffm@novell.com ReportedBy: suse-beta@cboltz.de QAContact: qa@suse.de Found By: Beta-Customer I just created a profile with logprof. This is how it looks: /usr/lib/nspluginwrapper/i386/linux/npviewer.bin flags=(complain) { #include <abstractions/base> # [...] /bin/bash mrcx, profile /bin/bash flags=(complain) { #include <abstractions/base> # [...] } } The starting line of the /bin/bash subprofile should have two spaces as left margin. The profile should look like this (added whitespace marked with "_"): /usr/lib/nspluginwrapper/i386/linux/npviewer.bin flags=(complain) { #include <abstractions/base> # [...] /bin/bash mrcx, __profile /bin/bash flags=(complain) { #include <abstractions/base> # [...] } } This little change would have two advantages: - better readability - it wouldn't confuse block detection in apparmor.vim ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=480795 User jeffm@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=480795#c1 --- Comment #1 from Jeff Mahoney <jeffm@novell.com> 2009-03-02 09:45:33 MST --- I'm sure you can understand that this is pretty low priority. If you attach a patch to the report, I'll be glad to include it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=480795 User suse-beta@cboltz.de added comment https://bugzilla.novell.com/show_bug.cgi?id=480795#c2 --- Comment #2 from Christian Boltz <suse-beta@cboltz.de> 2009-03-02 16:39:12 MST --- Yes, I understand it - that's why I have set the severity to minor ;-) I added some debugging to SubDomain.pm in sub writeheader() for testing. The results are interesting: - $debth and $pre in writeheader() are always correct and result in the correct number of whitespaces. Also the return value @data contains the correct number of whitespaces. - genprof somehow kills the spaces in front of "profile"... - logprof works fine - it even "repairs" the whitespace when updating a profile - the only calls to writeheader() in SubDomain.pm are in writepiece() Unfortunately this means that I'll have to dig deeper into SubDomain.pm or even the genprof and logprof scripts to find the error... (Note that the initial comment has a small typo - it should say "... created a profile with genprof" - not "logprof".) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com