aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2021-11-12 16:55:18 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2021-11-12 16:55:18 -0500
commitbd49232be8d32abafb9acadfef596784a63f563d (patch)
tree522b2d81008ca423a5f8940d5cf1fe4f52a72e60 /etc
parentreadme update (diff)
downloadfirejail-bd49232be8d32abafb9acadfef596784a63f563d.tar.gz
firejail-bd49232be8d32abafb9acadfef596784a63f563d.tar.zst
firejail-bd49232be8d32abafb9acadfef596784a63f563d.zip
telnet and ftp
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/disable-common.inc9
-rw-r--r--etc/profile-a-l/ftp.profile54
-rw-r--r--etc/profile-m-z/telnet.profile54
3 files changed, 114 insertions, 3 deletions
diff --git a/etc/inc/disable-common.inc b/etc/inc/disable-common.inc
index bdc5ff6b2..3f4c69dfe 100644
--- a/etc/inc/disable-common.inc
+++ b/etc/inc/disable-common.inc
@@ -494,7 +494,6 @@ blacklist ${PATH}/unix_chkpwd
494blacklist ${PATH}/xev 494blacklist ${PATH}/xev
495blacklist ${PATH}/xinput 495blacklist ${PATH}/xinput
496# from 0.9.67 496# from 0.9.67
497blacklist ${PATH}/ssh
498blacklist /usr/lib/openssh 497blacklist /usr/lib/openssh
499blacklist /usr/lib/ssh 498blacklist /usr/lib/ssh
500blacklist /usr/libexec/openssh 499blacklist /usr/libexec/openssh
@@ -583,8 +582,7 @@ blacklist ${HOME}/sent
583# kernel configuration 582# kernel configuration
584blacklist /proc/config.gz 583blacklist /proc/config.gz
585 584
586# prevent DNS malware attempting to communicate with the server 585# prevent DNS malware attempting to communicate with the server using regular DNS tools
587# using regular DNS tools
588blacklist ${PATH}/dig 586blacklist ${PATH}/dig
589blacklist ${PATH}/dlint 587blacklist ${PATH}/dlint
590blacklist ${PATH}/dns2tcp 588blacklist ${PATH}/dns2tcp
@@ -602,6 +600,11 @@ blacklist ${PATH}/nslookup
602blacklist ${PATH}/resolvectl 600blacklist ${PATH}/resolvectl
603blacklist ${PATH}/unbound-host 601blacklist ${PATH}/unbound-host
604 602
603# prevent an intruder to guess passwords using regular network tools
604blacklist ${PATH}/ftp
605blacklist ${PATH}/ssh
606blacklist ${PATH}/telnet
607
605# rest of ${RUNUSER} 608# rest of ${RUNUSER}
606blacklist ${RUNUSER}/*.lock 609blacklist ${RUNUSER}/*.lock
607blacklist ${RUNUSER}/inaccessible 610blacklist ${RUNUSER}/inaccessible
diff --git a/etc/profile-a-l/ftp.profile b/etc/profile-a-l/ftp.profile
new file mode 100644
index 000000000..29470360c
--- /dev/null
+++ b/etc/profile-a-l/ftp.profile
@@ -0,0 +1,54 @@
1# Firejail profile for ftp
2# Description: standard File Access Protocol utility
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include ftp.local
7# Persistent global definitions
8include globals.local
9
10noblacklist ${PATH}/ftp
11
12include disable-common.inc
13include disable-devel.inc
14include disable-exec.inc
15include disable-interpreters.inc
16include disable-proc.inc
17include disable-programs.inc
18#include disable-shell.inc
19include disable-write-mnt.inc
20include disable-X11.inc
21include disable-xdg.inc
22
23apparmor
24caps.drop all
25ipc-namespace
26machine-id
27netfilter
28no3d
29nodvd
30nogroups
31noinput
32nonewprivs
33noroot
34nosound
35notv
36nou2f
37novideo
38protocol inet,inet6
39seccomp
40shell none
41tracelog
42
43#disable-mnt
44#private-bin PROGRAMS
45private-cache
46private-dev
47#private-etc FILES
48private-tmp
49
50dbus-user none
51dbus-system none
52
53memory-deny-write-execute
54noexec ${HOME}
diff --git a/etc/profile-m-z/telnet.profile b/etc/profile-m-z/telnet.profile
new file mode 100644
index 000000000..0b0510460
--- /dev/null
+++ b/etc/profile-m-z/telnet.profile
@@ -0,0 +1,54 @@
1# Firejail profile for ftp
2# Description: standard File Access Protocol utility
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include telnet.local
7# Persistent global definitions
8include globals.local
9
10noblacklist ${PATH}/telnet
11
12include disable-common.inc
13include disable-devel.inc
14include disable-exec.inc
15include disable-interpreters.inc
16include disable-proc.inc
17include disable-programs.inc
18#include disable-shell.inc
19include disable-write-mnt.inc
20include disable-X11.inc
21include disable-xdg.inc
22
23apparmor
24caps.drop all
25ipc-namespace
26machine-id
27netfilter
28no3d
29nodvd
30nogroups
31noinput
32nonewprivs
33noroot
34nosound
35notv
36nou2f
37novideo
38protocol inet,inet6
39seccomp
40shell none
41tracelog
42
43#disable-mnt
44#private-bin PROGRAMS
45private-cache
46private-dev
47#private-etc FILES
48private-tmp
49
50dbus-user none
51dbus-system none
52
53memory-deny-write-execute
54noexec ${HOME}