aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2024-05-07 19:10:43 +0000
committerLibravatar GitHub <noreply@github.com>2024-05-07 19:10:43 +0000
commit4fa0bb7cd6f228ade683a400f582a00ee180a5a3 (patch)
treef0d92bab48a0e5b34c49a00c8ee2b65b63d79a2b
parentbuild(deps): bump step-security/harden-runner from 2.7.0 to 2.7.1 (diff)
downloadfirejail-4fa0bb7cd6f228ade683a400f582a00ee180a5a3.tar.gz
firejail-4fa0bb7cd6f228ade683a400f582a00ee180a5a3.tar.zst
firejail-4fa0bb7cd6f228ade683a400f582a00ee180a5a3.zip
profiles: hexchat: allow lua/downloads and harden (#6331)
* profiles: hexchat: hardenings * profiles: hexchat: allow lua/downloads and harden Allow more paths and add some extra options to harden the profile. We allow Perl but keep it out of private-bin. Do the same for Lua and clarify in the private-bin comment how to enable these interpreters. Consulted resources: - https://github.com/hexchat/hexchat/ - https://hexchat.readthedocs.io/
-rw-r--r--etc/profile-a-l/hexchat.profile18
1 files changed, 17 insertions, 1 deletions
diff --git a/etc/profile-a-l/hexchat.profile b/etc/profile-a-l/hexchat.profile
index def7bf25f..ba5a5fbac 100644
--- a/etc/profile-a-l/hexchat.profile
+++ b/etc/profile-a-l/hexchat.profile
@@ -11,6 +11,9 @@ noblacklist ${HOME}/.config/hexchat
11# Allow /bin/sh (blacklisted by disable-shell.inc) 11# Allow /bin/sh (blacklisted by disable-shell.inc)
12include allow-bin-sh.inc 12include allow-bin-sh.inc
13 13
14# Allow lua (blacklisted by disable-interpreters.inc)
15include allow-lua.inc
16
14# Allow perl (blacklisted by disable-interpreters.inc) 17# Allow perl (blacklisted by disable-interpreters.inc)
15include allow-perl.inc 18include allow-perl.inc
16 19
@@ -18,17 +21,24 @@ include allow-perl.inc
18include allow-python2.inc 21include allow-python2.inc
19include allow-python3.inc 22include allow-python3.inc
20 23
24blacklist /usr/libexec
25
21include disable-common.inc 26include disable-common.inc
22include disable-devel.inc 27include disable-devel.inc
23include disable-exec.inc 28include disable-exec.inc
24include disable-interpreters.inc 29include disable-interpreters.inc
30include disable-proc.inc
25include disable-programs.inc 31include disable-programs.inc
26include disable-shell.inc 32include disable-shell.inc
27include disable-xdg.inc 33include disable-xdg.inc
28 34
29mkdir ${HOME}/.config/hexchat 35mkdir ${HOME}/.config/hexchat
36whitelist ${DOWNLOADS}
30whitelist ${HOME}/.config/hexchat 37whitelist ${HOME}/.config/hexchat
31include whitelist-common.inc 38include whitelist-common.inc
39include whitelist-run-common.inc
40include whitelist-runuser-common.inc
41include whitelist-usr-share-common.inc
32include whitelist-var-common.inc 42include whitelist-var-common.inc
33 43
34caps.drop all 44caps.drop all
@@ -45,14 +55,20 @@ nou2f
45novideo 55novideo
46protocol unix,inet,inet6 56protocol unix,inet,inet6
47seccomp 57seccomp
58seccomp.block-secondary
48tracelog 59tracelog
49 60
50disable-mnt 61disable-mnt
51# debug note: private-bin requires perl, python, etc on some systems 62# If you need Lua and/or Perl support, add the relevant binaries from
63# allow-lua.inc/allow-perl.inc to private-bin in your hexchat.local.
52private-bin hexchat,python*,sh 64private-bin hexchat,python*,sh
53private-dev 65private-dev
54#private-lib # python problems 66#private-lib # python problems
55private-tmp 67private-tmp
56 68
69dbus-user filter
70dbus-user.own org.hexchat.service
71dbus-system none
72
57#memory-deny-write-execute # breaks python 73#memory-deny-write-execute # breaks python
58restrict-namespaces 74restrict-namespaces