diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/disable-common.inc | 9 | ||||
-rw-r--r-- | etc/profile-a-l/ftp.profile | 54 | ||||
-rw-r--r-- | etc/profile-m-z/telnet.profile | 54 |
3 files changed, 114 insertions, 3 deletions
diff --git a/etc/inc/disable-common.inc b/etc/inc/disable-common.inc index 56003bf97..04f4bf2d6 100644 --- a/etc/inc/disable-common.inc +++ b/etc/inc/disable-common.inc | |||
@@ -494,7 +494,6 @@ blacklist ${PATH}/unix_chkpwd | |||
494 | blacklist ${PATH}/xev | 494 | blacklist ${PATH}/xev |
495 | blacklist ${PATH}/xinput | 495 | blacklist ${PATH}/xinput |
496 | # from 0.9.67 | 496 | # from 0.9.67 |
497 | blacklist ${PATH}/ssh | ||
498 | blacklist /usr/lib/openssh | 497 | blacklist /usr/lib/openssh |
499 | blacklist /usr/lib/ssh | 498 | blacklist /usr/lib/ssh |
500 | blacklist /usr/libexec/openssh | 499 | blacklist /usr/libexec/openssh |
@@ -583,8 +582,7 @@ blacklist ${HOME}/sent | |||
583 | # kernel configuration | 582 | # kernel configuration |
584 | blacklist /proc/config.gz | 583 | blacklist /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 | ||
588 | blacklist ${PATH}/dig | 586 | blacklist ${PATH}/dig |
589 | blacklist ${PATH}/dlint | 587 | blacklist ${PATH}/dlint |
590 | blacklist ${PATH}/dns2tcp | 588 | blacklist ${PATH}/dns2tcp |
@@ -602,6 +600,11 @@ blacklist ${PATH}/nslookup | |||
602 | blacklist ${PATH}/resolvectl | 600 | blacklist ${PATH}/resolvectl |
603 | blacklist ${PATH}/unbound-host | 601 | blacklist ${PATH}/unbound-host |
604 | 602 | ||
603 | # prevent an intruder to guess passwords using regular network tools | ||
604 | blacklist ${PATH}/ftp | ||
605 | blacklist ${PATH}/ssh | ||
606 | blacklist ${PATH}/telnet | ||
607 | |||
605 | # rest of ${RUNUSER} | 608 | # rest of ${RUNUSER} |
606 | blacklist ${RUNUSER}/*.lock | 609 | blacklist ${RUNUSER}/*.lock |
607 | blacklist ${RUNUSER}/inaccessible | 610 | blacklist ${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 | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include ftp.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | noblacklist ${PATH}/ftp | ||
11 | |||
12 | include disable-common.inc | ||
13 | include disable-devel.inc | ||
14 | include disable-exec.inc | ||
15 | include disable-interpreters.inc | ||
16 | include disable-proc.inc | ||
17 | include disable-programs.inc | ||
18 | #include disable-shell.inc | ||
19 | include disable-write-mnt.inc | ||
20 | include disable-X11.inc | ||
21 | include disable-xdg.inc | ||
22 | |||
23 | apparmor | ||
24 | caps.drop all | ||
25 | ipc-namespace | ||
26 | machine-id | ||
27 | netfilter | ||
28 | no3d | ||
29 | nodvd | ||
30 | nogroups | ||
31 | noinput | ||
32 | nonewprivs | ||
33 | noroot | ||
34 | nosound | ||
35 | notv | ||
36 | nou2f | ||
37 | novideo | ||
38 | protocol inet,inet6 | ||
39 | seccomp | ||
40 | shell none | ||
41 | tracelog | ||
42 | |||
43 | #disable-mnt | ||
44 | #private-bin PROGRAMS | ||
45 | private-cache | ||
46 | private-dev | ||
47 | #private-etc FILES | ||
48 | private-tmp | ||
49 | |||
50 | dbus-user none | ||
51 | dbus-system none | ||
52 | |||
53 | memory-deny-write-execute | ||
54 | noexec ${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 | ||
4 | quiet | ||
5 | # Persistent local customizations | ||
6 | include telnet.local | ||
7 | # Persistent global definitions | ||
8 | include globals.local | ||
9 | |||
10 | noblacklist ${PATH}/telnet | ||
11 | |||
12 | include disable-common.inc | ||
13 | include disable-devel.inc | ||
14 | include disable-exec.inc | ||
15 | include disable-interpreters.inc | ||
16 | include disable-proc.inc | ||
17 | include disable-programs.inc | ||
18 | #include disable-shell.inc | ||
19 | include disable-write-mnt.inc | ||
20 | include disable-X11.inc | ||
21 | include disable-xdg.inc | ||
22 | |||
23 | apparmor | ||
24 | caps.drop all | ||
25 | ipc-namespace | ||
26 | machine-id | ||
27 | netfilter | ||
28 | no3d | ||
29 | nodvd | ||
30 | nogroups | ||
31 | noinput | ||
32 | nonewprivs | ||
33 | noroot | ||
34 | nosound | ||
35 | notv | ||
36 | nou2f | ||
37 | novideo | ||
38 | protocol inet,inet6 | ||
39 | seccomp | ||
40 | shell none | ||
41 | tracelog | ||
42 | |||
43 | #disable-mnt | ||
44 | #private-bin PROGRAMS | ||
45 | private-cache | ||
46 | private-dev | ||
47 | #private-etc FILES | ||
48 | private-tmp | ||
49 | |||
50 | dbus-user none | ||
51 | dbus-system none | ||
52 | |||
53 | memory-deny-write-execute | ||
54 | noexec ${HOME} | ||