From bdbb57747add56701de85d87b28491b8b82814f6 Mon Sep 17 00:00:00 2001 From: rusty-snake Date: Thu, 25 Jul 2019 14:11:08 +0200 Subject: Create rsync.profile --- etc/rsync.profile | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 etc/rsync.profile diff --git a/etc/rsync.profile b/etc/rsync.profile new file mode 100644 index 000000000..53dcc6677 --- /dev/null +++ b/etc/rsync.profile @@ -0,0 +1,54 @@ +# Firejail profile for rsync +# Description: a fast, versatile, remote (and local) file-copying tool +# This file is overwritten after every install/update +quiet +# Persistent local customizations +include rsync.local +# Persistent global definitions +include globals.local + +# This profile is focused on using rsync as an client for downlaoding, it is not writen for using rsync +# - as an daemon (rsync --daemon) +# - creating backup of $HOME or a full system + +blacklist /tmp/.X11-unix + +include disable-common.inc +include disable-devel.inc +include disable-exec.inc +include disable-interpreters.inc +include disable-passwdmgr.inc +include disable-programs.inc +include disable-xdg.inc + +# Uncomment or add to rsync.local to enable extra hardening +#whitelist ${DOWNLOADS} +include whitelist-var-common.inc + +caps.drop all +ipc-namespace +machine-id +netfilter +no3d +nodbus +nodvd +nogroups +nonewprivs +noroot +nosound +notv +nou2f +novideo +protocol unix,inet,inet6 +seccomp +shell none +tracelog + +disable-mnt +private-bin rsync +private-cache +private-dev +private-etc alternatives,ca-certificates,crypto-policies,host.conf,hostname,hosts,nsswitch.conf,pki,protocols,resolv.conf,rpc,services,ssl +private-tmp + +memory-deny-write-execute -- cgit v1.2.3-54-g00ecf