Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable-shell.inc #3411

Merged
merged 4 commits into from
Jun 4, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions etc/inc/disable-shell.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# This file is overwritten during software install.
# Persistent customizations should go in a .local file.
include disable-shell.local

blacklist ${PATH}/bash
blacklist ${PATH}/csh
blacklist ${PATH}/dash
blacklist ${PATH}/fish
blacklist ${PATH}/ksh
blacklist ${PATH}/sh
blacklist ${PATH}/tclsh
blacklist ${PATH}/tcsh
blacklist ${PATH}/zsh
1 change: 1 addition & 0 deletions etc/profile-a-l/abiword.profile
Original file line number Diff line number Diff line change
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

whitelist /usr/share/abiword-3.0
include whitelist-usr-share-common.inc
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/akregator.profile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ include disable-exec.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-shell.inc

mkfile ${HOME}/.config/akregatorrc
mkdir ${HOME}/.local/share/akregator
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/anki.profile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,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}/.local/share/Anki2
Expand Down
3 changes: 2 additions & 1 deletion etc/profile-a-l/anydesk.profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ noblacklist ${HOME}/.anydesk

include disable-common.inc
include disable-devel.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-interpreters.inc
include disable-shell.inc

mkdir ${HOME}/.anydesk
whitelist ${HOME}/.anydesk
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/ar.profile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ include disable-exec.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-shell.inc

apparmor
caps.drop all
Expand Down
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 @@ -15,6 +15,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

whitelist /usr/share/arch-audit
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/aria2c.profile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ include disable-exec.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-shell.inc
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aria2 supports on-download-complete=foo and we don't know what a user might put in a shell script. Perhaps we can add a comment, but the safest would be to not include disable-shell.inc here I guess. What do you think?


include whitelist-usr-share-common.inc
include whitelist-var-common.inc
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/artha.profile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,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

# whitelisting in ${HOME} makes settings immutable, see #3112
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/assogiate.profile
Original file line number Diff line number Diff line change
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

whitelist ${PICTURES}
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/audacity.profile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,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

include whitelist-var-common.inc
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/aweather.profile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ include disable-devel.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-shell.inc

mkdir ${HOME}/.config/aweather
whitelist ${HOME}/.config/aweather
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/baobab.profile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,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

include whitelist-runuser-common.inc
Expand Down
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 @@ -15,6 +15,7 @@ include disable-exec.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-shell.inc

mkdir ${HOME}/.bitcoin
mkdir ${HOME}/.config/Bitcoin
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/bitwarden.profile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,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}/.config/Bitwarden
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/blobwars.profile
Original file line number Diff line number Diff line change
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}/.parallelrealities/blobwars
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/bzflag.profile
Original file line number Diff line number Diff line change
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}/.bzf
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/cameramonitor.profile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,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

whitelist /usr/share/cameramonitor
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/cantata.profile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,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

# apparmor
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/cmus.profile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ include disable-devel.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-shell.inc
include disable-xdg.inc

caps.drop all
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/com.github.dahenson.agenda.profile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,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}/.cache/agenda
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/com.github.johnfactotum.Foliate.profile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,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}/.cache/com.github.johnfactotum.Foliate
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/corebird.profile
Original file line number Diff line number Diff line change
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

include whitelist-var-common.inc
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/cower.profile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ include disable-exec.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-shell.inc
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More a FYI, this package has been removed from AUR a while back, due to incompatibilities with pacman. So perhaps we can drop this profile. But the include would be fine regardless.

include disable-xdg.inc

# This profile could be significantly strengthened by adding the following to cower.local
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/crow.profile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,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

include whitelist-common.inc
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/d-feet.profile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,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}/.config/d-feet
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/dconf-editor.profile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,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

whitelist ${HOME}/.local/share/glib-2.0
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/devhelp.profile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,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

whitelist /usr/share/devhelp
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/dino.profile
Original file line number Diff line number Diff line change
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

mkdir ${HOME}/.local/share/dino
whitelist ${HOME}/.local/share/dino
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/display.profile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,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

include whitelist-usr-share-common.inc
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/dosbox.profile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ include disable-devel.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-shell.inc
include disable-xdg.inc

include whitelist-var-common.inc
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/dragon.profile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,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

whitelist /usr/share/dragonplayer
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/drawio.profile
Original file line number Diff line number Diff line change
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}/.config/draw.io
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/electron-mail.profile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,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}/.config/electron-mail
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/electrum.profile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,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}/.electrum
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/etr.profile
Original file line number Diff line number Diff line change
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}/.etr
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/evince.profile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,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

whitelist /usr/share/doc
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/exfalso.profile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,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}/.quodlibet
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/fbreader.profile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,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

include whitelist-var-common.inc
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/feh.profile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ include disable-exec.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
include disable-shell.inc

# This profile disables network access
# In order to enable network access,
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/ffmpeg.profile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,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

whitelist /usr/share/devedeng
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/flameshot.profile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,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

include whitelist-runuser-common.inc
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/font-manager.profile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,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}/.cache/font-manager
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/galculator.profile
Original file line number Diff line number Diff line change
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}/.config/galculator
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gfeeds.profile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,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}/.cache/gfeeds
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/ghostwriter.profile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,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

whitelist /usr/share/ghostwriter
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-calculator.profile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ include disable-exec.inc
include disable-passwdmgr.inc
include disable-interpreters.inc
include disable-programs.inc
include disable-shell.inc
include disable-xdg.inc

include whitelist-common.inc
Expand Down
1 change: 1 addition & 0 deletions etc/profile-a-l/gnome-characters.profile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,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

whitelist /usr/share/org.gnome.Characters
Expand Down
Loading