From 94af430d9f4ced938315b079bdc62313b7b8152c Mon Sep 17 00:00:00 2001 From: smitsohu Date: Tue, 13 Mar 2018 18:22:31 +0100 Subject: fix qupzilla, falkon (seccomp, tracelog, private-tmp) - #1794, #1736 --- etc/falkon.profile | 7 ++++--- etc/qupzilla.profile | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/etc/falkon.profile b/etc/falkon.profile index 03484382a..a86c83329 100644 --- a/etc/falkon.profile +++ b/etc/falkon.profile @@ -27,11 +27,12 @@ nonewprivs noroot notv protocol unix,inet,inet6,netlink -seccomp -tracelog +# blacklisting of chroot system calls breaks falkon +seccomp.drop @clock,@cpu-emulation,@debug,@module,@obsolete,@raw-io,@reboot,@resources,@swap,acct,add_key,bpf,fanotify_init,io_cancel,io_destroy,io_getevents,io_setup,io_submit,ioprio_set,kcmp,keyctl,mount,name_to_handle_at,nfsservctl,ni_syscall,open_by_handle_at,personality,pivot_root,process_vm_readv,ptrace,remap_file_pages,request_key,setdomainname,sethostname,syslog,umount,umount2,userfaultfd,vhangup,vmsplice +# tracelog private-dev -private-tmp +# private-tmp - interferes with the opening of downloaded files noexec ${HOME} noexec /tmp diff --git a/etc/qupzilla.profile b/etc/qupzilla.profile index 74c7355b6..e59a94bf8 100644 --- a/etc/qupzilla.profile +++ b/etc/qupzilla.profile @@ -17,14 +17,23 @@ whitelist ${DOWNLOADS} whitelist ${HOME}/.cache/qupzilla whitelist ${HOME}/.config/qupzilla include /etc/firejail/whitelist-common.inc +include /etc/firejail/whitelist-var-common.inc caps.drop all netfilter nodvd +nogroups +nonewprivs noroot notv protocol unix,inet,inet6,netlink -seccomp -tracelog +# blacklisting of chroot system calls breaks qupzilla +seccomp.drop @clock,@cpu-emulation,@debug,@module,@obsolete,@raw-io,@reboot,@resources,@swap,acct,add_key,bpf,fanotify_init,io_cancel,io_destroy,io_getevents,io_setup,io_submit,ioprio_set,kcmp,keyctl,mount,name_to_handle_at,nfsservctl,ni_syscall,open_by_handle_at,personality,pivot_root,process_vm_readv,ptrace,remap_file_pages,request_key,setdomainname,sethostname,syslog,umount,umount2,userfaultfd,vhangup,vmsplice +# tracelog -# private-etc passwd,group,hostname,hosts,localtime,nsswitch.conf,resolv.conf,gtk-2.0,pango,fonts,iceweasel,firefox,adobe,mime.types,mailcap,asound.conf,pulse +private-dev +# private-etc passwd,group,hostname,hosts,localtime,nsswitch.conf,resolv.conf,gtk-2.0,pango,fonts,adobe,mime.types,mailcap,asound.conf,pulse +# private-tmp - interferes with the opening of downloaded files + +noexec ${HOME} +noexec /tmp -- cgit v1.2.3-54-g00ecf