Skip to content

Commit

Permalink
telnet and ftp
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Nov 12, 2021
1 parent 34605b3 commit bd49232
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,4 +248,4 @@ $ ./profstats *.profile
### New profiles:

clion-eap, lifeograph, io.github.lainsce.Notejot, rednotebook, zim, microsoft-edge-beta, ncdu2, gallery-dl, yt-dlp, goldendict, bundle,
cmake, make, meson, pip, codium
cmake, make, meson, pip, codium, telnet, ftp
2 changes: 1 addition & 1 deletion RELNOTES
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ firejail (0.9.67) baseline; urgency=low
* new profiles: microsoft-edge-beta, clion-eap, lifeograph, zim
* new profiles: io.github.lainsce.Notejot, rednotebook, gallery-dl
* new profiles: yt-dlp, goldendict, goldendict, bundle, cmake
* new profiles: make, meson, pip, codium
* new profiles: make, meson, pip, codium, telnet, ftp
-- netblue30 <[email protected]> Thu, 29 Jul 2021 09:00:00 -0500

firejail (0.9.66) baseline; urgency=low
Expand Down
9 changes: 6 additions & 3 deletions etc/inc/disable-common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,6 @@ blacklist ${PATH}/unix_chkpwd
blacklist ${PATH}/xev
blacklist ${PATH}/xinput
# from 0.9.67
blacklist ${PATH}/ssh
blacklist /usr/lib/openssh
blacklist /usr/lib/ssh
blacklist /usr/libexec/openssh
Expand Down Expand Up @@ -583,8 +582,7 @@ blacklist ${HOME}/sent
# kernel configuration
blacklist /proc/config.gz

# prevent DNS malware attempting to communicate with the server
# using regular DNS tools
# prevent DNS malware attempting to communicate with the server using regular DNS tools
blacklist ${PATH}/dig
blacklist ${PATH}/dlint
blacklist ${PATH}/dns2tcp
Expand All @@ -602,6 +600,11 @@ blacklist ${PATH}/nslookup
blacklist ${PATH}/resolvectl
blacklist ${PATH}/unbound-host

# prevent an intruder to guess passwords using regular network tools
blacklist ${PATH}/ftp
blacklist ${PATH}/ssh
blacklist ${PATH}/telnet

# rest of ${RUNUSER}
blacklist ${RUNUSER}/*.lock
blacklist ${RUNUSER}/inaccessible
Expand Down
54 changes: 54 additions & 0 deletions etc/profile-a-l/ftp.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Firejail profile for ftp
# Description: standard File Access Protocol utility
# This file is overwritten after every install/update
quiet
# Persistent local customizations
include ftp.local
# Persistent global definitions
include globals.local

noblacklist ${PATH}/ftp

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
include disable-interpreters.inc
include disable-proc.inc
include disable-programs.inc
#include disable-shell.inc
include disable-write-mnt.inc
include disable-X11.inc
include disable-xdg.inc

apparmor
caps.drop all
ipc-namespace
machine-id
netfilter
no3d
nodvd
nogroups
noinput
nonewprivs
noroot
nosound
notv
nou2f
novideo
protocol inet,inet6
seccomp
shell none
tracelog

#disable-mnt
#private-bin PROGRAMS
private-cache
private-dev
#private-etc FILES
private-tmp

dbus-user none
dbus-system none

memory-deny-write-execute
noexec ${HOME}

This comment has been minimized.

Copy link
@rusty-snake

rusty-snake Nov 13, 2021

Collaborator

Redundant because of disable-exec.inc.

54 changes: 54 additions & 0 deletions etc/profile-m-z/telnet.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Firejail profile for ftp
# Description: standard File Access Protocol utility
# This file is overwritten after every install/update
quiet
# Persistent local customizations
include telnet.local
# Persistent global definitions
include globals.local

noblacklist ${PATH}/telnet

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
include disable-interpreters.inc
include disable-proc.inc
include disable-programs.inc
#include disable-shell.inc
include disable-write-mnt.inc
include disable-X11.inc
include disable-xdg.inc

apparmor
caps.drop all
ipc-namespace
machine-id
netfilter
no3d
nodvd
nogroups
noinput
nonewprivs
noroot
nosound
notv
nou2f
novideo
protocol inet,inet6
seccomp
shell none
tracelog

#disable-mnt
#private-bin PROGRAMS
private-cache
private-dev
#private-etc FILES
private-tmp

dbus-user none
dbus-system none

memory-deny-write-execute
noexec ${HOME}
2 changes: 2 additions & 0 deletions src/firecfg/firecfg.config
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ freetube
freshclam
frogatto
frozen-bubble
ftp
funnyboat
gajim
gajim-history-manager
Expand Down Expand Up @@ -767,6 +768,7 @@ teamspeak3
teeworlds
telegram
telegram-desktop
telnet
terasology
textmaker18
textmaker18free
Expand Down

0 comments on commit bd49232

Please sign in to comment.