apparmor/utils
Christian Boltz 02e2ce0ad9
test exec events/rules in test-libapparmor-test_multi.py
So far, exec events were accidentally skipped in
test-libapparmor-test_multi.py because aa[profile][hat] was not
initialized, and ask_exec() exited early because of this.

Initialize aa[profile][hat] in the test to fix this.

To avoid that someone needs to select "inherit" each time the tests run,
add an optional default_ans parameter to ask_exec(), and let the test
call it with 'CMD_ix'.

(In case you wonder - defaulting to CMD_cx would ask to sanitize the
environment. CMD_ix avoids this.)

Also, we have to copy over aa[profile][hat] to log_dict in the test
because ask_exec() modifies aa[...], but the test only checks its local
log_dict.

Finally, add the expected exec rules to the *.profile files
2024-10-23 19:25:35 +02:00
..
apparmor test exec events/rules in test-libapparmor-test_multi.py 2024-10-23 19:25:35 +02:00
easyprof Add aa-easyprof and easyprof.py and related pieces from the Ubuntu 2014-02-13 17:53:40 -08:00
po Update po README with correct directories and pygettext3 binary 2024-09-03 09:35:05 -07:00
test test exec events/rules in test-libapparmor-test_multi.py 2024-10-23 19:25:35 +02:00
vim apparmor.vim: Add missing units for rlimit cpu and rttime 2024-09-22 16:11:24 +02:00
aa-audit Order imports and module-level dunder name assignments. 2022-08-21 11:15:07 -04:00
aa-audit.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-autodep Order imports and module-level dunder name assignments. 2022-08-21 11:15:07 -04:00
aa-autodep.pod Stop calling ldd in aa-genprof and aa-autodep 2024-03-31 18:53:12 +02:00
aa-cleanprof Order imports and module-level dunder name assignments. 2022-08-21 11:15:07 -04:00
aa-cleanprof.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-complain Order imports and module-level dunder name assignments. 2022-08-21 11:15:07 -04:00
aa-complain.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-decode aa-decode: "fix" all remaining shellcheck style violations 2022-02-13 19:43:48 +00:00
aa-decode.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-disable Order imports and module-level dunder name assignments. 2022-08-21 11:15:07 -04:00
aa-disable.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-easyprof Order imports and module-level dunder name assignments. 2022-08-21 11:15:07 -04:00
aa-easyprof.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-enforce Order imports and module-level dunder name assignments. 2022-08-21 11:15:07 -04:00
aa-enforce.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-genprof utils: fix coding style to match PEP8 2024-05-20 13:56:37 -03:00
aa-genprof.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-logprof aa-logprof/aa-genprof: Adding support for --allow-all, --output-dir and --no-abstraction 2024-03-28 19:29:08 +00:00
aa-logprof.pod treewide: spelling/typo fixes in comments and docs 2020-12-01 12:47:11 -08:00
aa-mergeprof aa.py: Add load_sev_db() 2024-10-23 19:25:35 +02:00
aa-mergeprof.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-notify aa-notify: Simplify user interfaces and update man page 2024-09-17 09:17:23 +00:00
aa-notify.desktop Add .desktop file for aa-notify 2022-02-12 09:34:26 +00:00
aa-notify.pod aa-notify: Simplify user interfaces and update man page 2024-09-17 09:17:23 +00:00
aa-remove-unknown utils: fix removing unknown profiles that contain spaces 2024-05-28 16:22:49 -03:00
aa-remove-unknown.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-sandbox Order imports and module-level dunder name assignments. 2022-08-21 11:15:07 -04:00
aa-sandbox.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-unconfined utils/aa-unconfined: add a --short option 2024-07-10 16:11:22 -07:00
aa-unconfined.pod utils/aa-unconfined: add support to list processes with any network sockets 2024-07-10 16:11:22 -07:00
check_po.pl Ignore untranslated texts in check_po.pl 2017-11-27 23:47:52 +01:00
com.ubuntu.pkexec.aa-notify.policy aa-notify: Enhanced Graphical User Interfaces 2024-08-13 16:58:25 +00:00
default_unconfined.template aa-notify: Enhanced Graphical User Interfaces 2024-08-13 16:58:25 +00:00
logprof.conf Stop calling ldd in aa-genprof and aa-autodep 2024-03-31 18:53:12 +02:00
logprof.conf.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
Makefile aa-notify: Enhanced Graphical User Interfaces 2024-08-13 16:58:25 +00:00
notify.conf aa-notify: Simplify user interfaces and update man page 2024-09-17 09:17:23 +00:00
python-tools-setup.py utils: change os.mkdir to self.mkpath to create intermediary dirs 2024-08-15 00:44:55 -03:00
README.md Merge in Kshitij Gupta <kgupta8592@gmail.com>'s rewrite of the 2014-02-12 15:54:00 -08:00
severity.db Add CAP_CHECKPOINT_RESTORE to severity.db 2020-10-14 14:01:55 +02:00

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.