new profile: gdu (#5289)

* add gdu to 'new profiles' section

* Create gdu.profile

* add gdu to firecfg

* harden gdu sandbox

* fix protocol

* simulate empty protocol in gdu

* more user-friendly gdu sandboxing
This commit is contained in:
glitsj16 2022-08-09 21:11:18 +00:00 committed by GitHub
parent 4b9f6af9f8
commit b18120cc2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 1 deletions

View file

@ -221,4 +221,4 @@ Stats:
### New profiles:
onionshare, onionshare-cli, opera-developer, songrec
onionshare, onionshare-cli, opera-developer, songrec, gdu

View file

@ -0,0 +1,46 @@
# Firejail profile for gdu
# Description: Fast disk usage analyzer with console interface
# This file is overwritten after every install/update
quiet
# Persistent local customizations
include gdu.local
# Persistent global definitions
include globals.local
blacklist ${RUNUSER}/wayland-*
include disable-exec.inc
apparmor
caps.drop all
ipc-namespace
machine-id
net none
no3d
nodvd
nogroups
noinput
nonewprivs
noroot
nosound
notv
nou2f
novideo
# block the socket syscall to simulate an be empty protocol line, see #639
seccomp socket
seccomp.block-secondary
x11 none
private-dev
dbus-user none
dbus-system none
memory-deny-write-execute
# gdu has built-in delete (d), empty (e) dir/file support and shell spawning (b) features.
# Depending on workflow and use case the sandbox can be hardened by adding the
# lines below to your gdu.local if you don't need/want these functionalities.
#include disable-shell.inc
#private-bin gdu
#read-only ${HOME}

View file

@ -289,6 +289,7 @@ gapplication
gcalccmd
gcloud
gconf-editor
gdu
geany
geary
gedit