mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
![]() If a merged profile contains additional hats or subprofiles, the "old" aa-mergeprof silently created them as additional hasher elements (partly buggy, because subprofiles would end up as '^/subprofile' instead of 'profile /subprofile'). After switching to FileRule, aa-mergeprof crashes on new hats or subprofiles. This patch adds code to ask the user if the new hat or subprofile should be added - which means this patch replaces two bugs (crash + silently adding subprofiles and hats) with a new feature ;-) The new questions also add a new text CMD_ADDSUBPROFILE in ui.py. Finally, the new "button" combinations get added to test-translations.py. If you want to test, try to aa-mergeprof this profile (the subprofile and hat are dummies, nothing ping would really require): #include <tunables/global> /{usr/,}bin/ping { #include <abstractions/base> #include <abstractions/consoles> #include <abstractions/nameservice> capability net_raw, capability setuid, network inet raw, network inet6 raw, /{,usr/}bin/ping mixr, /etc/modules.conf r, ^hat { /bin/hat r, /bin/bash px, } profile /subprofile { /bin/subprofile r, /bin/bash px, } # Site-specific additions and overrides. See local/README for details. #include <local/bin.ping> } Note that this patch is not covered by unittests, but it passed all my manual tests. Acked-by: Steve Beattie <steve@nxnw.org> Bug: https://launchpad.net/bugs/1507469 |
||
---|---|---|
.. | ||
apparmor | ||
easyprof | ||
po | ||
test | ||
vim | ||
aa-audit | ||
aa-audit.pod | ||
aa-autodep | ||
aa-autodep.pod | ||
aa-cleanprof | ||
aa-cleanprof.pod | ||
aa-complain | ||
aa-complain.pod | ||
aa-decode | ||
aa-decode.pod | ||
aa-disable | ||
aa-disable.pod | ||
aa-easyprof | ||
aa-easyprof.pod | ||
aa-enforce | ||
aa-enforce.pod | ||
aa-genprof | ||
aa-genprof.pod | ||
aa-logprof | ||
aa-logprof.pod | ||
aa-mergeprof | ||
aa-mergeprof.pod | ||
aa-notify | ||
aa-notify.pod | ||
aa-sandbox | ||
aa-sandbox.pod | ||
aa-status | ||
aa-status.pod | ||
aa-unconfined | ||
aa-unconfined.pod | ||
check_po.pl | ||
logprof.conf | ||
logprof.conf.pod | ||
Makefile | ||
notify.conf | ||
python-tools-setup.py | ||
README.md | ||
severity.db |
Known Bugs: Will allow multiple letters in the () due to translation/unicode issues with regexing the key. User input will probably bug out in a different locale.