# Firejail profile for ping # Description: send ICMP ECHO_REQUEST to network hosts # This file is overwritten after every install/update quiet # Persistent local customizations include ping.local # Persistent global definitions include globals.local blacklist ${RUNUSER} 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-X11.inc include disable-xdg.inc include whitelist-common.inc include whitelist-run-common.inc include whitelist-runuser-common.inc include whitelist-usr-share-common.inc include whitelist-var-common.inc # Add the next line to your ping.local if your kernel allows unprivileged userns clone. #include ping-hardened.inc.profile apparmor caps.keep net_raw ipc-namespace machine-id #net tun0 #netfilter /etc/firejail/ping.net netfilter no3d nodvd nogroups noinput # ping needs to raise privileges, nonewprivs and noroot will kill it #nonewprivs noprinters #noroot nosound notv nou2f novideo # protocol command is built using seccomp; nonewprivs will kill it #protocol unix,inet,inet6,netlink,packet #seccomp tracelog disable-mnt private #private-bin ping - has mammoth problems with execvp: "No such file or directory" private-cache private-dev # /etc/hosts is required in private-etc; however, just adding it to the list doesn't solve the problem! private-etc alternatives,ca-certificates,crypto-policies,hosts,pki,resolv.conf,ssl,passwd,login.defs private-lib private-tmp # memory-deny-write-execute is built using seccomp; nonewprivs will kill it #memory-deny-write-execute dbus-user none dbus-system none read-only ${HOME} #restrict-namespaces