Skip to content

Commit

Permalink
add restrict-namespaces to (almost) all profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
smitsohu committed Dec 20, 2022
1 parent 372f39d commit e4f0f91
Show file tree
Hide file tree
Showing 628 changed files with 967 additions and 13 deletions.
2 changes: 2 additions & 0 deletions etc/profile-a-l/0ad.profile
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ private-tmp

dbus-user none
dbus-system none

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/2048-qt.profile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ seccomp
disable-mnt
private-dev
private-tmp

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/Cryptocat.profile
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ seccomp
private-cache
private-dev
private-tmp

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/Fritzing.profile
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ seccomp
private-dev
private-tmp

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/JDownloader.profile
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ private-tmp

dbus-user none
dbus-system none

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/abiword.profile
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ private-tmp

# dbus-user none
# dbus-system none

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/agetpkg.profile
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ dbus-user none
dbus-system none

memory-deny-write-execute
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/akonadi_control.profile
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ tracelog
private-dev
# private-tmp - breaks programs that depend on akonadi

# restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/akregator.profile
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ private-dev
private-tmp

deterministic-shutdown
# restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/alacarte.profile
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ read-write ${HOME}/.config/menus
read-write ${HOME}/.gnome/apps
read-write ${HOME}/.local/share/applications
read-write ${HOME}/.local/share/flatpak/exports
restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/alienarena.profile
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ private-tmp

dbus-user none
dbus-system none

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/alpine.profile
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,4 @@ dbus-system none

memory-deny-write-execute
read-only ${HOME}/.signature
restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/amarok.profile
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ dbus-user.talk org.freedesktop.Notifications
#dbus-user.own org.kde.klauncher
#dbus-user.talk org.kde.knotify
dbus-system none

# restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/amule.profile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ private-bin amule
private-dev
private-tmp

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/android-studio.profile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ private-cache

# noexec /tmp breaks 'Android Profiler'
#noexec /tmp
restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/anki.profile
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ private-tmp

dbus-user none
dbus-system none

# restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/anydesk.profile
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ disable-mnt
private-bin anydesk
private-dev
private-tmp

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/aosp.profile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ protocol unix,inet,inet6
#seccomp

private-tmp

#restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/apktool.profile
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ private-dev

dbus-user none
dbus-system none

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/apostrophe.profile
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ dbus-user filter
dbus-user.own org.gnome.gitlab.somas.Apostrophe
dbus-user.talk ca.desrt.dconf
dbus-system none

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/arch-audit.profile
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ dbus-user none
dbus-system none

memory-deny-write-execute
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/archaudit-report.profile
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ private-bin arch-audit,archaudit-report,bash,cat,comm,cut,date,fold,grep,pacman,
private-tmp

memory-deny-write-execute
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/archiver-common.profile
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ dbus-user none
dbus-system none

memory-deny-write-execute
restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/ardour5.profile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ private-tmp

dbus-user none
dbus-system none

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/arduino.profile
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ seccomp
private-cache
private-tmp

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/aria2c.profile
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ dbus-user none
dbus-system none

memory-deny-write-execute
restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/ark.profile
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ private-tmp

# dbus-user none
# dbus-system none

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/arm.profile
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ private-dev
private-etc alternatives,ca-certificates,crypto-policies,ld.so.cache,ld.so.preload,passwd,pki,ssl,tor
private-tmp

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/artha.profile
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ dbus-user.talk org.freedesktop.Notifications
dbus-system none

memory-deny-write-execute
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/assogiate.profile
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ dbus-system none

memory-deny-write-execute
read-write ${HOME}/.local/share/mime
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/asunder.profile
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ dbus-system none

# mdwe is disabled due to breaking hardware accelerated decoding
# memory-deny-write-execute
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/atril.profile
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,4 @@ private-tmp

# webkit gtk killed by memory-deny-write-execute
#memory-deny-write-execute
restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/audacious.profile
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ private-tmp
# dbus needed for MPRIS
# dbus-user none
# dbus-system none

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/audacity.profile
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ private-tmp
# problems on Fedora 27
# dbus-user none
# dbus-system none

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/audio-recorder.profile
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ dbus-user.talk ca.desrt.dconf
dbus-system none

# memory-deny-write-execute - breaks on Arch
restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/authenticator-rs.profile
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ private-tmp
dbus-user filter
dbus-user.talk ca.desrt.dconf
dbus-system none

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/authenticator.profile
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ private-tmp
# dbus-system none

#memory-deny-write-execute - breaks on Arch (see issue #1803)
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/autokey-common.profile
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ private-dev
private-tmp

#memory-deny-write-execute - breaks on Arch (see issue #1803)
restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/avidemux.profile
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,5 @@ private-tmp

dbus-user none
dbus-system none

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/aweather.profile
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ tracelog
private-bin aweather
private-dev
private-tmp

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/awesome.profile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ protocol unix,inet,inet6
seccomp

read-only ${HOME}/.config/awesome/autorun.sh
restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/ballbuster.profile
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ private-tmp

dbus-user none
dbus-system none

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/baloo_file.profile
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ private-bin baloo_file,baloo_file_extractor,baloo_filemetadata_temp_extractor,kb
private-cache
private-dev
private-tmp

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/balsa.profile
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,4 @@ dbus-user.talk org.gnome.keyring.SystemPrompter
dbus-system none

read-only ${HOME}/.mozilla/firefox/profiles.ini
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/baobab.profile
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ private-tmp
# dbus-system none

read-only ${HOME}
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/barrier.profile
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ private-cache
private-tmp

memory-deny-write-execute
restrict-namespaces
3 changes: 3 additions & 0 deletions etc/profile-a-l/basilisk.profile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ ignore seccomp
#private-etc basilisk
#private-opt basilisk

restrict-namespaces
ignore restrict-namespaces

# Redirect
include firefox-common.profile
2 changes: 2 additions & 0 deletions etc/profile-a-l/bcompare.profile
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ private-tmp

dbus-user none
dbus-system none

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/bibletime.profile
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,5 @@ private-tmp

dbus-user none
dbus-system none

# restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/bijiben.profile
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,4 @@ dbus-user.talk org.freedesktop.Tracker1
dbus-system none

env WEBKIT_FORCE_SANDBOX=0
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/bitcoin-qt.profile
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ private-dev
private-tmp

memory-deny-write-execute
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/bitlbee.profile
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ private-dev
private-tmp

read-write /var/lib/bitlbee
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/blackbox.profile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ noroot
protocol unix,inet,inet6
seccomp

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/bleachbit.profile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ dbus-system none

# memory-deny-write-execute breaks some systems, see issue #1850
# memory-deny-write-execute
restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/blender.profile
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ protocol unix,inet,inet6,netlink
seccomp !mbind

private-dev

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/bless.profile
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ private-tmp

dbus-user none
dbus-system none

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/blobby.profile
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,4 @@ dbus-user none
dbus-system none

memory-deny-write-execute
restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/blobwars.profile
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ private-tmp

dbus-user none
dbus-system none

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/bluefish.profile
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ private-tmp

dbus-user none
dbus-system none

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/brackets.profile
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ seccomp !chroot,!ioperm

private-cache
private-dev

# restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/brasero.profile
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ tracelog
private-cache
# private-dev
# private-tmp

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/build-systems-common.profile
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ private-tmp

dbus-user none
dbus-system none

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/bzflag.profile
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ private-tmp

dbus-user none
dbus-system none

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/calibre.profile
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ seccomp !chroot

private-dev
private-tmp

# restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/calligra.profile
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ private-dev

# noexec ${HOME}
noexec /tmp
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/cameramonitor.profile
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ private-tmp
# dbus-system none

# memory-deny-write-execute - breaks on Arch
restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/cantata.profile
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ seccomp
# private-etc alternatives,drirc,fonts,gcrypt,hosts,kde5rc,mpd.conf,passwd,samba,ssl,xdg
private-bin cantata,mpd,perl
private-dev

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/catfish.profile
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ tracelog

dbus-user none
dbus-system none

restrict-namespaces
2 changes: 2 additions & 0 deletions etc/profile-a-l/cawbird.profile
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ private-tmp

# dbus-user none
dbus-system none

restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/celluloid.profile
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ dbus-system none

read-only ${HOME}
read-write ${HOME}/.config/celluloid
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/chafa.profile
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ dbus-user none
dbus-system none

read-only ${HOME}
restrict-namespaces
1 change: 1 addition & 0 deletions etc/profile-a-l/checkbashisms.profile
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ dbus-user none
dbus-system none

memory-deny-write-execute
restrict-namespaces
Loading

0 comments on commit e4f0f91

Please sign in to comment.