apparmor/utils
Georgia Garcia 7ef7704f5a utils: fix removing unknown profiles that contain spaces
aa-remove-unknown doesn't deal properly with profiles that contain
spaces in their names.

Using profile "MongoDB Compass" as an example, awk's sub returns the
number of matches - either 1 or 0 and replaces the actual string ($0)
with the substitution.  By accessing the return of sub with $, awk
would be accessing $1 which would return only "MongoDB".
Fix this by using $0 instead of $str.

Fixes: https://gitlab.com/apparmor/apparmor/-/issues/395

Signed-off-by: Georgia Garcia <georgia.garcia@canonical.com>
2024-05-28 16:22:49 -03:00
..
apparmor Merge Add PivotRootRule class 2024-05-23 18:03:24 +00:00
easyprof Add aa-easyprof and easyprof.py and related pieces from the Ubuntu 2014-02-13 17:53:40 -08:00
po Update utils/po/ with Launchpad translations revision #2507 2023-02-01 22:28:45 -05:00
test Merge Add PivotRootRule class 2024-05-23 18:03:24 +00:00
vim apparmor.vim: add support for the 'all' rule 2023-09-10 18:38:48 +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 utils: fix coding style to match PEP8 2024-05-20 13:56:37 -03:00
aa-mergeprof.pod docs: update documentation to point bug reporting to gitlab 2020-05-05 00:10:53 -07:00
aa-notify utils: fix coding style to match PEP8 2024-05-20 13:56:37 -03: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 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 aa-unconfined: Fix race when reading proc/*/attr/current 2024-02-24 20:33:35 -08: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 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 utils: switch pyflakes3 to flake8 to improve python checks 2024-05-20 13:56:37 -03:00
notify.conf aa-notify: add notification filtering 2024-02-23 17:20:18 -03:00
python-tools-setup.py Adjust alpha/beta versions for setuptools 2024-04-21 17:22:18 +02: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.