aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar rusty-snake <41237666+rusty-snake@users.noreply.github.com>2021-07-09 12:55:40 +0200
committerLibravatar rusty-snake <41237666+rusty-snake@users.noreply.github.com>2021-07-09 12:55:40 +0200
commit0b31c4110d18ab32ed5a26f96937dc43ace3a7ed (patch)
tree3331df4c5b94b79908d3464d7e186612f33ccbcd /src
parentMerge pull request #4389 from rusty-snake/profcleaner.sh (diff)
downloadfirejail-0b31c4110d18ab32ed5a26f96937dc43ace3a7ed.tar.gz
firejail-0b31c4110d18ab32ed5a26f96937dc43ace3a7ed.tar.zst
firejail-0b31c4110d18ab32ed5a26f96937dc43ace3a7ed.zip
profcleaner.sh: Change "# CMD" and "#CMD" too
See https://github.com/netblue30/firejail/commit/00cb8b611f0e35a56585061d689fbcca2af0566b#commitcomment-53262808
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tools/profcleaner.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/profcleaner.sh b/src/tools/profcleaner.sh
index ded3313fa..709008e08 100755
--- a/src/tools/profcleaner.sh
+++ b/src/tools/profcleaner.sh
@@ -37,9 +37,9 @@ else
37 profiles=("$@") 37 profiles=("$@")
38fi 38fi
39 39
40sed -i \ 40sed -i -E \
41 -e "s/^blacklist/deny/" \ 41 -e "s/^(# |#)?blacklist/\1deny/" \
42 -e "s/^noblacklist/nodeny/" \ 42 -e "s/^(# |#)?noblacklist/\1nodeny/" \
43 -e "s/^whitelist/allow/" \ 43 -e "s/^(# |#)?whitelist/\1allow/" \
44 -e "s/^nowhitelist/noallow/" \ 44 -e "s/^(# |#)?nowhitelist/\1noallow/" \
45 "${profiles[@]}" 45 "${profiles[@]}"