Skip to content

Commit

Permalink
disable-shell.inc: add global shell paths from ids.config
Browse files Browse the repository at this point in the history
Since /etc/profile is present, add the other shell-related paths in /etc
that are listed on ids.config.

Suggestion by @rusty-snake[1].

Relates to netblue30#5167 netblue30#5170.

[1] netblue30#5167 (review)
  • Loading branch information
kmk3 committed Jun 2, 2022
1 parent 2183171 commit 03af910
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions etc/ids.config
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ ${HOME}/.zshenv
${HOME}/.zshprofile
${HOME}/.zshrc

# Note: This list should be kept in sync with the one in inc/disable-shell.inc.
### shells global ###
# all
/etc/dircolors
Expand Down
30 changes: 30 additions & 0 deletions etc/inc/disable-shell.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,35 @@ blacklist ${PATH}/sh
blacklist ${PATH}/tclsh
blacklist ${PATH}/tcsh
blacklist ${PATH}/zsh

# Note: This list should be kept in sync with the one in ../ids.config.
### shells global ###
# all
blacklist /etc/dircolors
blacklist /etc/environment
blacklist /etc/profile
blacklist /etc/profile.d
blacklist /etc/shells
blacklist /etc/skel
# bash
blacklist /etc/bash
blacklist /etc/bash.bashrc
blacklist /etc/bash_completion*
blacklist /etc/bashrc
# fish
blacklist /etc/fish
# ksh
blacklist /etc/ksh.kshrc
blacklist /etc/suid_profile
# tcsh
blacklist /etc/complete.tcsh
blacklist /etc/csh.cshrc
blacklist /etc/csh.login
blacklist /etc/csh.logout
# zsh
blacklist /etc/zlogin
blacklist /etc/zlogout
blacklist /etc/zprofile
blacklist /etc/zsh
blacklist /etc/zshenv
blacklist /etc/zshrc

0 comments on commit 03af910

Please sign in to comment.