[Bug 408877] New: logprof drops the complain flag from subprofiles
https://bugzilla.novell.com/show_bug.cgi?id=408877 Summary: logprof drops the complain flag from subprofiles Product: openSUSE 11.0 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: AppArmor AssignedTo: jjohansen@novell.com ReportedBy: poeml@novell.com QAContact: qa@suse.de Found By: --- I set a profile (/usr/sbin/sshd) into complain mode (with the 'complain' tool), which added the flag to all profiles: =================================================================== --- usr.sbin.sshd (revision 61) +++ usr.sbin.sshd (revision 62) @@ -69,7 +69,7 @@ @{PROC}/[0-9]*/mounts r, - ^AUTHENTICATED { + ^AUTHENTICATED flags=(complain) { #include <abstractions/authentication> #include <abstractions/consoles> #include <abstractions/nameservice> @@ -91,7 +91,7 @@ } - ^EXEC { + ^EXEC flags=(complain) { #include <abstractions/base> @@ -108,7 +108,7 @@ } - ^PRIVSEP { + ^PRIVSEP flags=(complain) { #include <abstractions/base> #include <abstractions/nameservice> @@ -120,7 +120,7 @@ } - ^PRIVSEP_MONITOR { + ^PRIVSEP_MONITOR flags=(complain) { #include <abstractions/authentication> #include <abstractions/base> #include <abstractions/nameservice> =================================================================== Now, running logprof shows two problems. The one is that it suggests changes, which it will write, but it will suggest them the next time again: =================================================================== Profile: /usr/sbin/sshd Path: /var/log/wtmp Old Mode: w New Mode: w + owner k Severity: unknown [1 - /var/log/wtmp] [(A)llow] / (D)eny / (G)lob / Glob w/(E)xt / (N)ew / Abo(r)t / (F)inish / (O)pts Adding /var/log/wtmp w + owner k to profile. Profile: /usr/sbin/sshd Path: /var/run/utmp Old Mode: rw New Mode: rw + owner k Severity: unknown [1 - /var/run/utmp] [(A)llow] / (D)eny / (G)lob / Glob w/(E)xt / (N)ew / Abo(r)t / (F)inish / (O)pts =================================================================== (I get these suggestions each time I run logprof, even though there are in the profile. This is similar to the other bug I reported, where the network mediation flags are ignored.) But logprof does a change, which is unintended. It removes the complain flag from the subprofiles: =================================================================== --- usr.sbin.sshd (revision 62) +++ usr.sbin.sshd (working copy) @@ -1,4 +1,4 @@ -# Last Modified: Mon Jul 14 14:29:09 2008 +# Last Modified: Mon Jul 14 14:34:41 2008 # $Id: usr.sbin.sshd 697 2007-05-25 03:09:30Z steve-beattie $ # ------------------------------------------------------------------ # @@ -69,7 +69,7 @@ @{PROC}/[0-9]*/mounts r, - ^AUTHENTICATED flags=(complain) { + ^AUTHENTICATED { #include <abstractions/authentication> #include <abstractions/consoles> #include <abstractions/nameservice> @@ -91,7 +91,7 @@ } - ^EXEC flags=(complain) { + ^EXEC { #include <abstractions/base> @@ -108,7 +108,7 @@ } - ^PRIVSEP flags=(complain) { + ^PRIVSEP { #include <abstractions/base> #include <abstractions/nameservice> @@ -120,7 +120,7 @@ } - ^PRIVSEP_MONITOR flags=(complain) { + ^PRIVSEP_MONITOR { #include <abstractions/authentication> #include <abstractions/base> #include <abstractions/nameservice> =================================================================== I gave this bug a higher severity because it looks as if it has the potential to lock the admin out. -- 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=408877 User jjohansen@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=408877#c1 John Johansen <jjohansen@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from John Johansen <jjohansen@novell.com> 2008-07-14 17:39:00 MDT --- Just to double check this happens with logprof, not genprof correct? -- 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=408877 User poeml@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=408877#c2 --- Comment #2 from Peter Poeml <poeml@novell.com> 2008-07-15 04:05:24 MDT --- Exactly, 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.
https://bugzilla.novell.com/show_bug.cgi?id=408877 User jjohansen@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=408877#c3 John Johansen <jjohansen@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Critical |Major Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from John Johansen <jjohansen@novell.com> 2009-01-07 05:33:04 MST --- Dropping the priority slightly as since it is only dropping the flags on hats it is unlikely to lock an admin out unless they are trying to do admin through apache with mod_apparmor or through a confined service using pam_apparmor. As such this isn't going to be fixed for 11.0, it has been fixed in 11.1 and the 11.1 utils are 100% compatible to 11.0, so if a user wishes to remain on 11.0 the should upgrade to the 11.1 apparmor-utils package. -- 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