apparmor/utils/apparmor
Christian Boltz 9ba11eb14a Allow aa-complain etc. to change profiles for non-existing binaries
aa-complain, aa-enforce, aa-disable and aa-audit refused to change
profiles for non-existing binaries. This patch also allows paths
starting with /. This also makes it possible to use
    aa-complain '/{usr/,}bin/ping'
and
    aa-complain /etc/apparmor.d/bin.ping


This patch fixes https://bugs.launchpad.net/apparmor/+bug/1416346

Well, mostly - we still need to decide how we handle wildcards in
profile names:
    aa-complain ping
    aa-complain /usr/bin/ping
will still error out with "Profile not found" because it isn't an exact
match (and matching the wildcard would change more than the user wants).


Oh, and this patch also fixes the last failure in minitools_test.py.



Acked-by: Steve Beattie <steve@nxnw.org> for trunk and 2.9
2015-06-06 14:26:40 +02:00
..
__init__.py Due to wanting to support additional external apparmor python modules, 2014-09-15 12:18:16 -07:00
aa.py Fix available buttons after switching audit flag in aa-logprof 2015-06-06 14:13:00 +02:00
aamode.py delete commented line in aamode.py / validate_log_mode() 2014-12-02 18:45:41 +01:00
cleanprofile.py replace copy_netrules_other with list(netrules_other[...]) in 2014-09-05 23:21:00 +02:00
common.py utils: improve recursive_print output for RawRules 2014-12-09 10:43:25 -08:00
config.py Merge in Kshitij Gupta <kgupta8592@gmail.com>'s rewrite of the 2014-02-12 15:54:00 -08:00
easyprof.py cherrypick from trunk: 2015-03-31 16:24:31 -05:00
logparser.py logparser.py: change mask only for path events 2015-04-16 01:53:39 +02:00
regex.py Let set_profile_flags() change the flags for all hats 2015-05-28 22:16:36 +02:00
rules.py utils: improve recursive_print output for RawRules 2014-12-09 10:43:25 -08:00
sandbox.py Move os.chdir(old_cwd) to before the aa-exec call it remove the side-effect of 2014-02-06 15:15:48 -05:00
severity.py fix "unknown capability: CAP_whatever" in aa-logprof 2014-11-14 02:27:33 +01:00
tools.py Allow aa-complain etc. to change profiles for non-existing binaries 2015-06-06 14:26:40 +02:00
translations.py Merge in Kshitij Gupta <kgupta8592@gmail.com>'s rewrite of the 2014-02-12 15:54:00 -08:00
ui.py The make check for utils was failing due to the raw_input being 2014-11-17 18:00:04 +05:30
yasti.py utils/apparmor/yasti.py: remove XXX comments; when the time comes for 2014-02-14 22:52:31 -08:00