Skip to content

Commit

Permalink
Firefox profile fix for 0.9.38 (Ubuntu 16.04) in etc-fixes/
Browse files Browse the repository at this point in the history
Seccomp filter lifted from 0.9.54 version. Cosmetic errors occur
for unrecognised options (such as @clock) but do not affect sandbox.
  • Loading branch information
Fred-Barclay committed May 13, 2018
1 parent 24a33d7 commit 1f45aa8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions etc-fixes/0.9.38/firefox.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Firejail profile for Mozilla Firefox (Iceweasel in Debian)
noblacklist ${HOME}/.mozilla
include /etc/firejail/disable-mgmt.inc
include /etc/firejail/disable-secret.inc
include /etc/firejail/disable-common.inc
include /etc/firejail/disable-devel.inc
caps.drop all
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

This comment has been minimized.

Copy link
@smitsohu

smitsohu May 14, 2018

Collaborator

@Fred-Barclay Doesn't this seccomp.drop list violate the "LTS spirit"? How about the one from unbound.profile, which is still at the level of 0.9.38? That one would be guaranteed to be free from new bugs or regressions.

This comment has been minimized.

Copy link
@Fred-Barclay

Fred-Barclay May 15, 2018

Author Collaborator

@smitsohu probably. 😉 @netblue30 has fixed it already. I think.

protocol unix,inet,inet6,netlink
netfilter
# tracelog
noroot
whitelist ${DOWNLOADS}
whitelist ~/.mozilla
whitelist ~/.cache/mozilla/firefox
whitelist ~/dwhelper
whitelist ~/.zotero
whitelist ~/.lastpass
whitelist ~/.vimperatorrc
whitelist ~/.vimperator
whitelist ~/.pentadactylrc
whitelist ~/.pentadactyl
whitelist ~/.keysnail.js
whitelist ~/.config/gnome-mplayer
whitelist ~/.cache/gnome-mplayer/plugin
include /etc/firejail/whitelist-common.inc

# experimental features
#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

0 comments on commit 1f45aa8

Please sign in to comment.