Skip to content

Commit

Permalink
from my overrides
Browse files Browse the repository at this point in the history
 - add seccomp.block-secondary to a lot profiles
 - add wruc to firefox-common and ignore it in TB and
   firefox-common-addons
 - harden dia, gnome-keyring, libreoffice, megaglest, pngquant,
   ghostwriter, rhythmbox, sqlitebrowser
  • Loading branch information
rusty-snake committed Nov 16, 2020
1 parent bd539da commit 096d0de
Show file tree
Hide file tree
Showing 60 changed files with 90 additions and 5 deletions.
2 changes: 2 additions & 0 deletions etc/inc/firefox-common-addons.inc
Expand Up @@ -2,6 +2,8 @@
# Persistent customizations should go in a .local file.
include firefox-common-addons.local

ignore include whitelist-runuser-common.inc

noblacklist ${HOME}/.config/kgetrc
noblacklist ${HOME}/.config/okularpartrc
noblacklist ${HOME}/.config/okularrc
Expand Down
2 changes: 2 additions & 0 deletions etc/profile-a-l/0ad.profile
Expand Up @@ -16,6 +16,7 @@ include disable-exec.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-xdg.inc

mkdir ${HOME}/.cache/0ad
mkdir ${HOME}/.config/0ad
Expand All @@ -40,6 +41,7 @@ nou2f
novideo
protocol unix,inet,inet6
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/baobab.profile
Expand Up @@ -30,6 +30,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/bijiben.profile
Expand Up @@ -41,6 +41,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/celluloid.profile
Expand Up @@ -46,6 +46,7 @@ noroot
nou2f
protocol unix,inet,inet6
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/dconf-editor.profile
Expand Up @@ -35,6 +35,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
13 changes: 11 additions & 2 deletions etc/profile-a-l/dia.profile
Expand Up @@ -9,16 +9,24 @@ include globals.local
noblacklist ${HOME}/.dia
noblacklist ${DOCUMENTS}

include allow-python2.inc
include allow-python3.inc

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
include allow-python2.inc
include allow-python3.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-xdg.inc

#mkdir ${HOME}/.dia
#whitelist ${HOME}/.dia
#whitelist ${DOCUMENTS}
#include whitelist-common.inc
whitelist /usr/share/dia
include whitelist-runuser-common.inc
include whitelist-usr-share-common.inc
include whitelist-var-common.inc

apparmor
Expand All @@ -36,6 +44,7 @@ novideo
protocol unix
seccomp
shell none
tracelog

disable-mnt
#private-bin dia
Expand Down
2 changes: 2 additions & 0 deletions etc/profile-a-l/eo-common.profile
Expand Up @@ -27,6 +27,7 @@ apparmor
caps.drop all
ipc-namespace
machine-id
net none
no3d
nodvd
nogroups
Expand All @@ -38,6 +39,7 @@ nou2f
novideo
protocol unix,netlink
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/evince.profile
Expand Up @@ -41,6 +41,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/ffmpeg.profile
Expand Up @@ -41,6 +41,7 @@ novideo
protocol inet,inet6
# allow set_mempolicy, which is required to encode using libx265
seccomp !set_mempolicy
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/file-roller.profile
Expand Up @@ -34,6 +34,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/firefox-common.profile
Expand Up @@ -27,6 +27,7 @@ whitelist ${DOWNLOADS}
whitelist ${HOME}/.pki
whitelist ${HOME}/.local/share/pki
include whitelist-common.inc
include whitelist-runuser-common.inc
include whitelist-var-common.inc

apparmor
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/flameshot.profile
Expand Up @@ -45,6 +45,7 @@ nou2f
novideo
protocol unix,inet,inet6
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/frogatto.profile
Expand Up @@ -36,6 +36,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gapplication.profile
Expand Up @@ -38,6 +38,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog
x11 none
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gedit.profile
Expand Up @@ -37,6 +37,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gfeeds.profile
Expand Up @@ -49,6 +49,7 @@ nou2f
novideo
protocol unix,inet,inet6
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
2 changes: 2 additions & 0 deletions etc/profile-a-l/ghostwriter.profile
Expand Up @@ -26,6 +26,7 @@ whitelist /usr/share/texlive
whitelist /usr/share/pandoc*
include whitelist-runuser-common.inc
include whitelist-usr-share-common.inc
include whitelist-var-common.inc

apparmor
caps.drop all
Expand All @@ -41,6 +42,7 @@ nou2f
novideo
protocol unix,inet,inet6,netlink
seccomp !chroot
seccomp.block-secondary
shell none
#tracelog -- breaks

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gitg.profile
Expand Up @@ -45,6 +45,7 @@ nou2f
novideo
protocol unix,inet,inet6
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-calculator.profile
Expand Up @@ -38,6 +38,7 @@ nou2f
novideo
protocol unix,inet,inet6
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-calendar.profile
Expand Up @@ -36,6 +36,7 @@ nou2f
novideo
protocol unix,inet,inet6
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-characters.profile
Expand Up @@ -39,6 +39,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-contacts.profile
Expand Up @@ -32,6 +32,7 @@ nou2f
novideo
protocol unix,inet,inet6,netlink
seccomp
seccomp.block-secondary

disable-mnt
private-dev
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-hexgl.profile
Expand Up @@ -33,6 +33,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
11 changes: 8 additions & 3 deletions etc/profile-a-l/gnome-keyring.profile
Expand Up @@ -9,8 +9,6 @@ include globals.local

noblacklist ${HOME}/.gnupg

whitelist ${HOME}/.gnupg
whitelist ${DOWNLOADS}
include disable-common.inc
include disable-devel.inc
include disable-exec.inc
Expand All @@ -19,9 +17,15 @@ include disable-interpreters.inc
include disable-programs.inc
include disable-xdg.inc

mkdir ${HOME}/.gnupg
whitelist ${HOME}/.gnupg
whitelist ${DOWNLOADS}
whitelist ${RUNUSER}/gnupg
whitelist ${RUNUSER}/keyring
whitelist /usr/share/gnupg
whitelist /usr/share/gnupg2
include whitelist-common.inc
include whitelist-runuser-common.inc
include whitelist-usr-share-common.inc
include whitelist-var-common.inc

Expand All @@ -41,6 +45,7 @@ nou2f
novideo
protocol unix,inet,inet6
seccomp
seccomp.block-secondary
shell none
tracelog

Expand All @@ -52,6 +57,6 @@ private-dev
private-tmp

# dbus-user none
# dbus-system none
dbus-system none

memory-deny-write-execute
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-latex.profile
Expand Up @@ -41,6 +41,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-maps.profile
Expand Up @@ -54,6 +54,7 @@ nou2f
novideo
protocol unix,inet,inet6
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-passwordsafe.profile
Expand Up @@ -43,6 +43,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-photos.profile
Expand Up @@ -33,6 +33,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-screenshot.profile
Expand Up @@ -35,6 +35,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-sound-recorder.profile
Expand Up @@ -33,6 +33,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-weather.profile
Expand Up @@ -37,6 +37,7 @@ nou2f
novideo
protocol unix,inet,inet6
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome_games-common.profile
Expand Up @@ -34,6 +34,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gucharmap.profile
Expand Up @@ -35,6 +35,7 @@ nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/keepassxc.profile
Expand Up @@ -55,6 +55,7 @@ nou2f
novideo
protocol unix,netlink
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
2 changes: 2 additions & 0 deletions etc/profile-a-l/libreoffice.profile
Expand Up @@ -43,6 +43,8 @@ shell none
# comment tracelog when using the ubuntu 18.04/debian 10 apparmor profile
tracelog

#private-bin libreoffice,sh,uname,dirname,grep,sed,basename,ls
private-cache
private-dev
private-tmp

Expand Down
2 changes: 2 additions & 0 deletions etc/profile-m-z/megaglest.profile
Expand Up @@ -14,6 +14,7 @@ include disable-exec.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-shell.inc
include disable-xdg.inc

mkdir ${HOME}/.megaglest
Expand All @@ -37,6 +38,7 @@ nou2f
novideo
protocol unix,inet,inet6,netlink
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down
1 change: 1 addition & 0 deletions etc/profile-m-z/meld.profile
Expand Up @@ -62,6 +62,7 @@ nou2f
novideo
protocol unix,inet,inet6
seccomp
seccomp.block-secondary
shell none
tracelog

Expand Down

0 comments on commit 096d0de

Please sign in to comment.