mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-05 17:01:00 +01:00
![]() Thanks to reading the wrong directory in read_inactive_profiles() (profile_dir instead of extra_profile_dir), aa-genprof never asked about using a profile from the extra_profile_dir. Sounds like an easy fix, right? ;-) After fixing this (last chunk), several other errors popped up, one after the other: - get_profile() missed a required parameter in a serialize_profile() call - when saving the profile, it was written to extra_profile_dir, not to profile_dir where it (as a now-active profile) should be. This is fixed by removing the filename from existing_profiles{} so that it can pick up the default name. - CMD_FINISHED (when asking if the extra profile should be used or a new one) behaved exactly like CMD_CREATE_PROFILE, but this is surprising for the user. Remove it to avoid confusion. - displaying the extra profile was only implemented in YaST mode - get_pager() returned None, not an actual pager. Since we have 'less' hardcoded at several places, also return it in get_pager() Finally, also remove CMD_FINISHED from the get_profile() test in test-translations.py. (test-translations.py is only in trunk, therefore this part of the patch is obviously trunk-only.) Acked-by: Seth Arnold <seth.arnold@canonical.com> for trunk Acked-by: John Johansen <john.johansen@canonical.com> for trunk + a 50% ACK for 2.10 and 2.9 Acked-by: Kshitij Gupta <kgupta8592@gmail.com> for trunk, 2.10 and 2.9 |
||
---|---|---|
.. | ||
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-exec | ||
aa-exec.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.