apparmor/utils
Christian Boltz c0b5d90848 Merge Resolve "Python: Ensure opened files are closed."
This MR closes #239. In the temporary file commit, `tempfile.NamedTemporaryFile` is preferred over `tempfile.mkstemp` because it allows for simpler use of context managers and lets you choose what mode to open the file in. Also in this commit, note that in `aa.py` and `easyprof.py` destination files are now written directly, instead of writing to temp files and then renaming them.

Closes #239
MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/898
Approved-by: Christian Boltz <apparmor@cboltz.de>
Merged-by: Christian Boltz <apparmor@cboltz.de>
2022-07-20 19:34:16 +00:00
..
apparmor Implement code review comments. 2022-07-19 20:32:03 -04:00
easyprof Add aa-easyprof and easyprof.py and related pieces from the Ubuntu 2014-02-13 17:53:40 -08:00
po Fix hotkey conflict in utils de.po, id.po and sv.po 2020-10-31 21:59:32 +01:00
test Merge Resolve "Python: Ensure opened files are closed." 2022-07-20 19:34:16 +00:00
vim Remove Python 2 support. 2022-06-29 20:41:38 -04:00
aa-audit Add --configdir to all aa-* utils 2020-10-29 21:24:15 +01:00
aa-audit.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-autodep Add --configdir to all aa-* utils 2020-10-29 21:24:15 +01:00
aa-autodep.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-cleanprof Add --configdir to all aa-* utils 2020-10-29 21:24:15 +01:00
aa-cleanprof.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-complain Add --configdir to all aa-* utils 2020-10-29 21:24:15 +01: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 Add --configdir to all aa-* utils 2020-10-29 21:24:15 +01:00
aa-disable.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-easyprof Switch utils to python3 2016-10-01 20:57:09 +02:00
aa-easyprof.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-enforce Add --configdir to all aa-* utils 2020-10-29 21:24:15 +01:00
aa-enforce.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-genprof Simplify logmark used in syslog 2022-02-21 22:52:14 +01:00
aa-genprof.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-logprof import AppArmorException from apparmor.common 2021-08-24 22:31:11 +02:00
aa-logprof.pod treewide: spelling/typo fixes in comments and docs 2020-12-01 12:47:11 -08:00
aa-mergeprof Change ask_the_questions() to work with merged profile names 2021-04-15 12:53:08 +02:00
aa-mergeprof.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-notify Fix spelling and grammar errors. 2022-06-18 16:14:45 -04:00
aa-notify.desktop Add .desktop file for aa-notify 2022-02-12 09:34:26 +00:00
aa-notify.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-remove-unknown Mark variables as dummy in a way that shellcheck 0.7.0 supports 2022-02-13 19:43:48 +00:00
aa-remove-unknown.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-sandbox Switch utils to python3 2016-10-01 20:57:09 +02:00
aa-sandbox.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-unconfined aa-unconfined: Improve fallback handling to attr/current 2021-09-18 19:02:56 +02:00
aa-unconfined.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
check_po.pl Ignore untranslated texts in check_po.pl 2017-11-27 23:47:52 +01:00
logprof.conf Add new python versions to logprof.conf 2021-08-25 13:50:28 +02:00
logprof.conf.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
Makefile replace deprecated distutils with setuptools 2021-11-11 20:23:35 -03:00
notify.conf comment out use_group to remove group restrictions 2018-03-18 19:56:29 +01:00
python-tools-setup.py Remove Python 2 support. 2022-06-29 20:41:38 -04: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.