Skip to content

Commit

Permalink
Merge pull request #5387 from kmk3/dc-blacklist-sudoers
Browse files Browse the repository at this point in the history
disable-common.inc: blacklist sudo/doas paths in /etc
  • Loading branch information
kmk3 committed Jul 14, 2023
2 parents ac1ddcf + 580283d commit c7b8e00
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ scan-build: clean

.PHONY: codespell
codespell: clean
codespell --ignore-regex "UE|creat|shotcut|ether" src test
codespell --ignore-regex "UE|creat|doas|shotcut|ether" src test

.PHONY: print-env
print-env:
Expand Down
1 change: 1 addition & 0 deletions etc/ids.config
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ ${HOME}/.local/share/autostart
/etc/security
/etc/selinux
/etc/shadow*
/etc/sudo*.conf
/etc/sudoers*
/etc/tripwire
${HOME}/.config/firejail
Expand Down
3 changes: 3 additions & 0 deletions etc/inc/disable-common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ blacklist /tmp/ssh-*
# top secret
blacklist /.fscrypt
blacklist /etc/davfs2/secrets
blacklist /etc/doas.conf
blacklist /etc/group+
blacklist /etc/group-
blacklist /etc/gshadow
Expand All @@ -428,6 +429,8 @@ blacklist /etc/shadow+
blacklist /etc/shadow-
blacklist /etc/ssh
blacklist /etc/ssh/*
blacklist /etc/sudo*.conf
blacklist /etc/sudoers*
blacklist /home/.ecryptfs
blacklist /home/.fscrypt
blacklist ${HOME}/*.kdb
Expand Down
1 change: 1 addition & 0 deletions src/jailcheck/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ int main(int argc, char **argv) {
// basic sysfiles
sysfiles_setup("/etc/shadow");
sysfiles_setup("/etc/gshadow");
sysfiles_setup("/usr/bin/doas");
sysfiles_setup("/usr/bin/mount");
sysfiles_setup("/usr/bin/su");
sysfiles_setup("/usr/bin/ksu");
Expand Down

0 comments on commit c7b8e00

Please sign in to comment.