diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-08-11 05:26:05 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-09-08 04:57:37 -0300 |
commit | c6d33375cc34e4e5e527ab43c219adfbc8848c62 (patch) | |
tree | 0ccf4359f9b8ab8a5c4e37bd042fbf19314f12a8 /etc/profile-a-l/lutris.profile | |
parent | profiles: fix some comments (diff) | |
download | firejail-c6d33375cc34e4e5e527ab43c219adfbc8848c62.tar.gz firejail-c6d33375cc34e4e5e527ab43c219adfbc8848c62.tar.zst firejail-c6d33375cc34e4e5e527ab43c219adfbc8848c62.zip |
profiles: fix commented code and eol comments
Main changes:
* Remove the space after `#` for commented code lines to distinguish
them from normal comments
* Use `#` instead of `-` for comments at the end of the line so that
commented code lines work after being uncommented
Commands used to search and replace:
arg0="$(cat contrib/syntax/lists/profile_commands_arg0.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
arg1="$(cat contrib/syntax/lists/profile_commands_arg1.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
git ls-files -z -- etc/inc etc/profile* | xargs -0 -I '{}' \
sh -c "printf '%s\n' \"\$(sed -E \
-e 's/^# ($arg0)( [#-]-? .*)?\$/#\\1\\2/' \
-e 's/^# ($arg1)( [^ ]*)?( [#-]-? .*)?\$/#\\1\\2\\3/' \
-e 's/^# (whitelist \\$)/#\\1/' \
-e 's/^(#[^ ].+) --? /\\1 # /' \
'{}')\" >'{}'"
Commands used to check for leftover entries:
arg0="$(cat contrib/syntax/lists/profile_commands_arg0.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
arg1="$(cat contrib/syntax/lists/profile_commands_arg1.list |
LC_ALL=C sort -u | tr '\n' '|' | sed -e 's/|$//' -e 's/\./\\./g')"
git grep -E "^# ($arg0|$arg1)( +|$)" -- etc/inc etc/profile*
See also commit 30f9ad908 ("build: improve comments in firecfg.config",
2023-08-05) / PR #5942.
Diffstat (limited to 'etc/profile-a-l/lutris.profile')
-rw-r--r-- | etc/profile-a-l/lutris.profile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/profile-a-l/lutris.profile b/etc/profile-a-l/lutris.profile index 2658c5373..c3497c3bd 100644 --- a/etc/profile-a-l/lutris.profile +++ b/etc/profile-a-l/lutris.profile | |||
@@ -13,7 +13,7 @@ noblacklist ${HOME}/.cache/wine | |||
13 | noblacklist ${HOME}/.cache/winetricks | 13 | noblacklist ${HOME}/.cache/winetricks |
14 | noblacklist ${HOME}/.config/lutris | 14 | noblacklist ${HOME}/.config/lutris |
15 | noblacklist ${HOME}/.local/share/lutris | 15 | noblacklist ${HOME}/.local/share/lutris |
16 | # noblacklist ${HOME}/.wine | 16 | #noblacklist ${HOME}/.wine |
17 | noblacklist /tmp/.wine-* | 17 | noblacklist /tmp/.wine-* |
18 | # Don't block access to /sbin and /usr/sbin to allow using ldconfig. Otherwise | 18 | # Don't block access to /sbin and /usr/sbin to allow using ldconfig. Otherwise |
19 | # Lutris won't even start. | 19 | # Lutris won't even start. |
@@ -39,7 +39,7 @@ mkdir ${HOME}/.cache/wine | |||
39 | mkdir ${HOME}/.cache/winetricks | 39 | mkdir ${HOME}/.cache/winetricks |
40 | mkdir ${HOME}/.config/lutris | 40 | mkdir ${HOME}/.config/lutris |
41 | mkdir ${HOME}/.local/share/lutris | 41 | mkdir ${HOME}/.local/share/lutris |
42 | # mkdir ${HOME}/.wine | 42 | #mkdir ${HOME}/.wine |
43 | whitelist ${DOWNLOADS} | 43 | whitelist ${DOWNLOADS} |
44 | whitelist ${HOME}/Games | 44 | whitelist ${HOME}/Games |
45 | whitelist ${HOME}/.cache/lutris | 45 | whitelist ${HOME}/.cache/lutris |
@@ -47,7 +47,7 @@ whitelist ${HOME}/.cache/wine | |||
47 | whitelist ${HOME}/.cache/winetricks | 47 | whitelist ${HOME}/.cache/winetricks |
48 | whitelist ${HOME}/.config/lutris | 48 | whitelist ${HOME}/.config/lutris |
49 | whitelist ${HOME}/.local/share/lutris | 49 | whitelist ${HOME}/.local/share/lutris |
50 | # whitelist ${HOME}/.wine | 50 | #whitelist ${HOME}/.wine |
51 | whitelist /usr/share/lutris | 51 | whitelist /usr/share/lutris |
52 | whitelist /usr/share/wine | 52 | whitelist /usr/share/wine |
53 | include whitelist-common.inc | 53 | include whitelist-common.inc |
@@ -55,11 +55,11 @@ include whitelist-usr-share-common.inc | |||
55 | include whitelist-runuser-common.inc | 55 | include whitelist-runuser-common.inc |
56 | include whitelist-var-common.inc | 56 | include whitelist-var-common.inc |
57 | 57 | ||
58 | # allow-debuggers | 58 | #allow-debuggers |
59 | # apparmor | 59 | #apparmor |
60 | caps.drop all | 60 | caps.drop all |
61 | ipc-namespace | 61 | ipc-namespace |
62 | # net none | 62 | #net none |
63 | netfilter | 63 | netfilter |
64 | nodvd | 64 | nodvd |
65 | nogroups | 65 | nogroups |