aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/allow-ssh.inc2
-rw-r--r--etc/inc/disable-common.inc41
-rw-r--r--etc/inc/disable-devel.inc36
-rw-r--r--etc/profile-a-l/default.profile4
4 files changed, 74 insertions, 9 deletions
diff --git a/etc/inc/allow-ssh.inc b/etc/inc/allow-ssh.inc
index 024d87be7..6b2c5846e 100644
--- a/etc/inc/allow-ssh.inc
+++ b/etc/inc/allow-ssh.inc
@@ -6,7 +6,7 @@ noblacklist ${HOME}/.ssh
6noblacklist /etc/ssh 6noblacklist /etc/ssh
7noblacklist /etc/ssh/ssh_config 7noblacklist /etc/ssh/ssh_config
8noblacklist /etc/ssh/ssh_config.d 8noblacklist /etc/ssh/ssh_config.d
9noblacklist ${PATH}/ssh 9noblacklist ${PATH}/ssh*
10noblacklist /tmp/ssh-* 10noblacklist /tmp/ssh-*
11# Arch Linux and derivatives 11# Arch Linux and derivatives
12noblacklist /usr/lib/ssh 12noblacklist /usr/lib/ssh
diff --git a/etc/inc/disable-common.inc b/etc/inc/disable-common.inc
index ce4f08958..bcf90e9ed 100644
--- a/etc/inc/disable-common.inc
+++ b/etc/inc/disable-common.inc
@@ -170,7 +170,7 @@ blacklist ${RUNUSER}/gsconnect
170blacklist ${HOME}/.config/systemd 170blacklist ${HOME}/.config/systemd
171blacklist ${HOME}/.local/share/systemd 171blacklist ${HOME}/.local/share/systemd
172blacklist ${PATH}/systemctl 172blacklist ${PATH}/systemctl
173blacklist ${PATH}/systemd-run 173blacklist ${PATH}/systemd*
174blacklist ${RUNUSER}/systemd 174blacklist ${RUNUSER}/systemd
175blacklist /etc/credstore* 175blacklist /etc/credstore*
176blacklist /etc/systemd/network 176blacklist /etc/systemd/network
@@ -319,7 +319,7 @@ read-only ${HOME}/.zshenv
319read-only ${HOME}/.zshrc 319read-only ${HOME}/.zshrc
320read-only ${HOME}/.zshrc.local 320read-only ${HOME}/.zshrc.local
321 321
322# Remote access 322# Remote access (used only by sshd; should always be blacklisted)
323blacklist ${HOME}/.rhosts 323blacklist ${HOME}/.rhosts
324blacklist ${HOME}/.shosts 324blacklist ${HOME}/.shosts
325blacklist ${HOME}/.ssh/authorized_keys 325blacklist ${HOME}/.ssh/authorized_keys
@@ -327,8 +327,6 @@ blacklist ${HOME}/.ssh/authorized_keys2
327blacklist ${HOME}/.ssh/environment 327blacklist ${HOME}/.ssh/environment
328blacklist ${HOME}/.ssh/rc 328blacklist ${HOME}/.ssh/rc
329blacklist /etc/hosts.equiv 329blacklist /etc/hosts.equiv
330read-only ${HOME}/.ssh/config
331read-only ${HOME}/.ssh/config.d
332 330
333# Initialization files that allow arbitrary command execution 331# Initialization files that allow arbitrary command execution
334read-only ${HOME}/.caffrc 332read-only ${HOME}/.caffrc
@@ -360,6 +358,8 @@ read-only ${HOME}/.nanorc
360read-only ${HOME}/.npmrc 358read-only ${HOME}/.npmrc
361read-only ${HOME}/.pythonrc.py 359read-only ${HOME}/.pythonrc.py
362read-only ${HOME}/.reportbugrc 360read-only ${HOME}/.reportbugrc
361read-only ${HOME}/.ssh/config
362read-only ${HOME}/.ssh/config.d
363read-only ${HOME}/.tmux.conf 363read-only ${HOME}/.tmux.conf
364read-only ${HOME}/.vim 364read-only ${HOME}/.vim
365read-only ${HOME}/.viminfo 365read-only ${HOME}/.viminfo
@@ -518,7 +518,10 @@ blacklist ${PATH}/kdesudo
518blacklist ${PATH}/ksu 518blacklist ${PATH}/ksu
519blacklist ${PATH}/mount 519blacklist ${PATH}/mount
520blacklist ${PATH}/mount.ecryptfs_private 520blacklist ${PATH}/mount.ecryptfs_private
521blacklist ${PATH}/mountpoint
521blacklist ${PATH}/nc 522blacklist ${PATH}/nc
523blacklist ${PATH}/nc.traditional
524blacklist ${PATH}/nc.openbsd
522blacklist ${PATH}/ncat 525blacklist ${PATH}/ncat
523blacklist ${PATH}/nmap 526blacklist ${PATH}/nmap
524blacklist ${PATH}/newgidmap 527blacklist ${PATH}/newgidmap
@@ -536,7 +539,6 @@ blacklist ${PATH}/umount
536blacklist ${PATH}/unix_chkpwd 539blacklist ${PATH}/unix_chkpwd
537blacklist ${PATH}/xev 540blacklist ${PATH}/xev
538blacklist ${PATH}/xinput 541blacklist ${PATH}/xinput
539# from 0.9.67
540blacklist /usr/lib/openssh 542blacklist /usr/lib/openssh
541blacklist /usr/lib/ssh 543blacklist /usr/lib/ssh
542blacklist /usr/libexec/openssh 544blacklist /usr/libexec/openssh
@@ -573,6 +575,28 @@ blacklist ${PATH}/nmtui-hostname
573blacklist ${PATH}/networkctl 575blacklist ${PATH}/networkctl
574blacklist ${PATH}/ss 576blacklist ${PATH}/ss
575blacklist ${PATH}/traceroute 577blacklist ${PATH}/traceroute
578# since firejail version 0.9.73
579blacklist ${PATH}/dpkg*
580blacklist ${PATH}/fakeroot*
581blacklist ${PATH}/apt*
582blacklist ${PATH}/dumpcap
583blacklist ${PATH}/efibootdump
584blacklist ${PATH}/efibootmgr
585blacklist ${PATH}/passmass
586blacklist ${PATH}/proxy
587blacklist ${PATH}/aa-*
588blacklist ${PATH}/airscan-discover
589blacklist ${PATH}/avahi*
590blacklist ${PATH}/dbus-*
591blacklist ${PATH}/debconf*
592blacklist ${PATH}/grub-*
593blacklist ${PATH}/kernel-install # from systemd package
594
595# binaries installed by firejail
596blacklist ${PATH}/firemon
597blacklist ${PATH}/firecfg
598blacklist ${PATH}/jailcheck
599blacklist ${PATH}/firetools
576 600
577# other SUID binaries 601# other SUID binaries
578blacklist /opt/microsoft/msedge*/msedge-sandbox 602blacklist /opt/microsoft/msedge*/msedge-sandbox
@@ -653,10 +677,13 @@ blacklist ${HOME}/sent
653blacklist /proc/config.gz 677blacklist /proc/config.gz
654 678
655# prevent DNS malware attempting to communicate with the server using regular DNS tools 679# prevent DNS malware attempting to communicate with the server using regular DNS tools
680blacklist ${PATH}/delv
656blacklist ${PATH}/dig 681blacklist ${PATH}/dig
657blacklist ${PATH}/dlint 682blacklist ${PATH}/dlint
658blacklist ${PATH}/dns2tcp 683blacklist ${PATH}/dns2tcp
659blacklist ${PATH}/dnssec-* 684blacklist ${PATH}/dnssec-*
685blacklist ${PATH}/dnstap-read
686blacklist ${PATH}/mdig
660blacklist ${PATH}/dnswalk 687blacklist ${PATH}/dnswalk
661blacklist ${PATH}/drill 688blacklist ${PATH}/drill
662blacklist ${PATH}/host 689blacklist ${PATH}/host
@@ -667,12 +694,14 @@ blacklist ${PATH}/knsupdate
667blacklist ${PATH}/ldns-* 694blacklist ${PATH}/ldns-*
668blacklist ${PATH}/ldnsd 695blacklist ${PATH}/ldnsd
669blacklist ${PATH}/nslookup 696blacklist ${PATH}/nslookup
697blacklist ${PATH}/nsupdate
698blacklist ${PATH}/nstat
670blacklist ${PATH}/resolvectl 699blacklist ${PATH}/resolvectl
671blacklist ${PATH}/unbound-host 700blacklist ${PATH}/unbound-host
672 701
673# prevent an intruder to guess passwords using regular network tools 702# prevent an intruder to guess passwords using regular network tools
674blacklist ${PATH}/ftp 703blacklist ${PATH}/ftp
675blacklist ${PATH}/ssh 704blacklist ${PATH}/ssh*
676blacklist ${PATH}/telnet 705blacklist ${PATH}/telnet
677 706
678# rest of ${RUNUSER} 707# rest of ${RUNUSER}
diff --git a/etc/inc/disable-devel.inc b/etc/inc/disable-devel.inc
index 360077936..fa10524f0 100644
--- a/etc/inc/disable-devel.inc
+++ b/etc/inc/disable-devel.inc
@@ -4,12 +4,42 @@ include disable-devel.local
4 4
5# development tools 5# development tools
6 6
7# autoconf/automake
8blacklist ${PATH}/autoconf
9blacklist ${PATH}/autoheader
10blacklist ${PATH}/autom4te
11blacklist ${PATH}/autoreconf
12blacklist ${PATH}/autoscan
13blacklist ${PATH}/autoupdate
14blacklist ${PATH}/ifnames
15blacklist ${PATH}/aclocal*
16blacklist ${PATH}/automake*
17blacklist ${PATH}/dh_*
18blacklist ${PATH}/m4
19
20# patch
21blacklist ${PATH}/patch
22blacklist ${PATH}/patchview
23blacklist ${PATH}/espdiff
24blacklist ${PATH}/elfedit
25
26# expect
27blacklist ${PATH}/expect*
28blacklist ${PATH}/autoexpect
29
7# clang/llvm 30# clang/llvm
8blacklist ${PATH}/clang* 31blacklist ${PATH}/clang*
9blacklist ${PATH}/lldb* 32blacklist ${PATH}/lldb*
10blacklist ${PATH}/llvm* 33blacklist ${PATH}/llvm*
11# see issue #2106 - it disables hardware acceleration in Firefox on Radeon GPU 34# see issue #2106 - it disables hardware acceleration in Firefox on Radeon GPU
12# blacklist /usr/lib/llvm* 35# blacklist /usr/lib/llvm*
36blacklist ${PATH}/scan-build
37blacklist ${PATH}/analyze-build*
38blacklist ${PATH}/asan_symbolize*
39blacklist ${PATH}/bugpoint*
40blacklist ${PATH}/c-index-test*
41blacklist ${PATH}/llc*
42blacklist ${PATH}/lli*
13 43
14# GCC 44# GCC
15blacklist ${PATH}/as 45blacklist ${PATH}/as
@@ -28,6 +58,12 @@ blacklist ${PATH}/*-gcc*
28blacklist ${PATH}/*-g++* 58blacklist ${PATH}/*-g++*
29# seems to create problems on Gentoo 59# seems to create problems on Gentoo
30#blacklist /usr/lib/gcc 60#blacklist /usr/lib/gcc
61blacklist ${PATH}/elfedit
62blacklist ${PATH}/gcov*
63blacklist ${PATH}/gmake
64blacklist ${PATH}/make
65blacklist ${PATH}/make-first-existing-target
66blacklist ${PATH}/x86_64-linux-gnu-*
31 67
32#Go 68#Go
33blacklist ${PATH}/gccgo 69blacklist ${PATH}/gccgo
diff --git a/etc/profile-a-l/default.profile b/etc/profile-a-l/default.profile
index 41794d173..377c4e2e3 100644
--- a/etc/profile-a-l/default.profile
+++ b/etc/profile-a-l/default.profile
@@ -46,12 +46,12 @@ seccomp
46# private 46# private
47# private-bin program 47# private-bin program
48# private-cache 48# private-cache
49# private-dev 49private-dev
50# see /usr/share/doc/firejail/profile.template for more common private-etc paths. 50# see /usr/share/doc/firejail/profile.template for more common private-etc paths.
51# private-etc alternatives,fonts,machine-id 51# private-etc alternatives,fonts,machine-id
52# private-lib 52# private-lib
53# private-opt none 53# private-opt none
54# private-tmp 54private-tmp
55 55
56# dbus-user none 56# dbus-user none
57# dbus-system none 57# dbus-system none