Skip to content

Commit

Permalink
various profile enhancements
Browse files Browse the repository at this point in the history
* okular needs kdeinit4 for open file dialog since recently
* memory-deny-write-execute should be a safe addition for
  desktop use of dnscrypt and unbound
* cleanup works
  • Loading branch information
smitsohu committed Sep 25, 2017
1 parent 94bb788 commit 9b99215
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
4 changes: 4 additions & 0 deletions etc/baloo_file.profile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ include /etc/firejail/disable-devel.inc
include /etc/firejail/disable-passwdmgr.inc
include /etc/firejail/disable-programs.inc

include /etc/firejail/whitelist-var-common.inc

caps.drop all
no3d
nodvd
Expand All @@ -29,8 +31,10 @@ novideo
protocol unix
# Baloo makes ioprio_set system calls, which are blacklisted by default.
seccomp.drop @cpu-emulation,@debug,@obsolete,@privileged,@resources,add_key,fanotify_init,io_cancel,io_destroy,io_getevents,io_setup,io_submit,kcmp,keyctl,name_to_handle_at,ni_syscall,open_by_handle_at,personality,process_vm_readv,ptrace,remap_file_pages,request_key,syslog,umount,userfaultfd,vmsplice
shell none
x11 xorg

private-bin baloo_file,baloo_file_extractor,kbuildsycoca4
private-dev
private-tmp

Expand Down
1 change: 1 addition & 0 deletions etc/disable-programs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ blacklist ${HOME}/.synfig
blacklist ${HOME}/.tconn
blacklist ${HOME}/.thunderbird
blacklist ${HOME}/.tooling
blacklist ${HOME}/.tor-browser-en
blacklist ${HOME}/.ts3client
blacklist ${HOME}/.tuxguitar*
blacklist ${HOME}/.unknow-horizons
Expand Down
3 changes: 1 addition & 2 deletions etc/dnscrypt-proxy.profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ blacklist /tmp/.X11-unix

noblacklist /sbin
noblacklist /usr/sbin
noblacklist /var/log

include /etc/firejail/disable-common.inc
include /etc/firejail/disable-devel.inc
Expand All @@ -31,4 +30,4 @@ private
private-dev

# mdwe can break modules/plugins
# memory-deny-write-execute
memory-deny-write-execute
1 change: 0 additions & 1 deletion etc/dnsmasq.profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ blacklist /tmp/.X11-unix

noblacklist /sbin
noblacklist /usr/sbin
noblacklist /var/log

include /etc/firejail/disable-common.inc
include /etc/firejail/disable-devel.inc
Expand Down
2 changes: 1 addition & 1 deletion etc/evince.profile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ include /etc/firejail/disable-programs.inc
include /etc/firejail/whitelist-var-common.inc

caps.drop all
# net none breaks AppArmor on Ubuntu systems
netfilter
no3d
nodvd
Expand All @@ -28,7 +29,6 @@ protocol unix
seccomp
shell none
tracelog
# net none breaks AppArmor on Ubuntu systems

private-bin evince,evince-previewer,evince-thumbnailer
private-dev
Expand Down
12 changes: 7 additions & 5 deletions etc/ffmpeg.profile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Firejail profile for default
# Firejail profile for ffmpeg
# This file is overwritten after every install/update
quiet
# Persistent local customizations
Expand All @@ -11,6 +11,8 @@ include /etc/firejail/disable-devel.inc
include /etc/firejail/disable-passwdmgr.inc
include /etc/firejail/disable-programs.inc

include /etc/firejail/whitelist-var-common.inc

caps.drop all
net none
no3d
Expand All @@ -23,11 +25,11 @@ noroot
# protocol none - needs to be implemented!
seccomp
# seccomp.keep futex,write,read,munmap,fstat,mprotect,mmap,open,close,stat,lseek,brk,rt_sigaction,rt_sigprocmask,ioctl,access,select,madvise,getpid,clone,execve,fcntl,getdents,readlink,getrlimit,getrusage,statfs,getpriority,setpriority,arch_prctl,sched_getaffinity,set_tid_address,set_robust_list,getrandom
# memory-deny-write-execute - it breaks old versions of ffmpeg
shell none
tracelog

private-tmp
private-dev
private-bin ffmpeg
include /etc/firejail/whitelist-var-common.inc
private-dev
private-tmp

# memory-deny-write-execute - it breaks old versions of ffmpeg
2 changes: 1 addition & 1 deletion etc/okular.profile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ seccomp
shell none
tracelog

# private-bin okular,kbuildsycoca4,lpr
# private-bin okular,kbuildsycoca4,kdeinit4,lpr
private-dev
# private-etc fonts,X11
private-tmp
Expand Down
3 changes: 1 addition & 2 deletions etc/unbound.profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ blacklist /tmp/.X11-unix

noblacklist /sbin
noblacklist /usr/sbin
noblacklist /var/log

include /etc/firejail/disable-common.inc
include /etc/firejail/disable-devel.inc
Expand All @@ -31,4 +30,4 @@ private
private-dev

# mdwe can break modules/plugins
# memory-deny-write-execute
memory-deny-write-execute

0 comments on commit 9b99215

Please sign in to comment.