The AppArmor user space development project.
Find a file
Steve Beattie 01b7969eee From: Jeff Mahoney <jeffm@suse.com>
Subject: apparmor-utils: Inherit flags in sub-profiles when generating profiles
References: bnc#496204

 When creating profiles with cx subprofiles, genprof will set the
 sub-profile in enforce mode. When genprof cycles multiple times, it
 prohibits the sub-profile from working correctly.

 e.g.

 # Last Modified: Mon Jan 24 13:52:26 2011
 #include <tunables/global>

 /home/jeffm/mycat flags=(complain) {
   #include <abstractions/base>
   #include <abstractions/bash>
   #include <abstractions/consoles>

   /bin/bash ix,
   /bin/cat cx,
   /home/jeffm/mycat r,

 profile /bin/cat {
     #include <abstractions/base>

     /bin/cat r,
     /home/jeffm/mycat r,

   }
 }

 This patch allows sub-profiles to inherit the flags from the parent
 profile, which allows it to be created in complain mode (if appropriate).
 The temporary complain flags are cleaned up at genprof completion as
 expected.

 This issue was reported at: https://bugzilla.novell.com/show_bug.cgi?id=496204

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Acked-By: Steve Beattie <sbeattie@ubuntu.com>

Bug: https://launchpad.net/bugs/707092
2011-02-15 16:24:33 -08:00
changehat Merge from trunk revision 1582: update the man pages to: 2011-01-13 16:29:20 -06:00
common Fix minor build warning on rpm based systems. 2010-09-20 11:40:32 -07:00
deprecated/management Merge from trunk rev 1639: Fix compilation in deprecated gnome 2011-02-08 13:20:05 -08:00
kernel-patches Pull outdated kernel patches, to avoid confusion. Add README to note 2010-09-16 02:25:59 -07:00
libraries/libapparmor Merge from trunk rev 1636: libapparmor: remove LD_RUN_PATH from swig 2011-02-08 09:48:57 -08:00
parser Author: Jamie Strandboge <jamie@canonical.com> 2011-02-15 10:34:17 -08:00
profiles From: Jeff Mahoney <jeffm@suse.com> 2011-02-15 11:01:55 -08:00
tests Merge from trunk rev 1505: modifies the xattr regression test to use 2010-10-04 12:31:00 -07:00
utils From: Jeff Mahoney <jeffm@suse.com> 2011-02-15 16:24:33 -08:00
.bzrignore Fix two x transition conflict bugs. 2011-01-07 12:46:15 -08:00
LICENSE Add a top-level "catch-all" GPLv2 license to cover any files that are 2007-03-30 15:47:14 +00:00
Makefile Makefile: make setup target work independently. 2011-02-08 09:32:16 -08:00