diff options
author | 2023-07-16 11:24:12 -0400 | |
---|---|---|
committer | 2023-07-16 11:24:12 -0400 | |
commit | cb39a0eafd030829c0081e698cb934fd4f09692f (patch) | |
tree | 755ee6a74cd9fee380c4fd1c6a5cb2a4361c4b66 /src/jailcheck/main.c | |
parent | fnettrace cleanup (diff) | |
parent | Merge pull request #5900 from kmk3/firecfg-support-doas (diff) | |
download | firejail-cb39a0eafd030829c0081e698cb934fd4f09692f.tar.gz firejail-cb39a0eafd030829c0081e698cb934fd4f09692f.tar.zst firejail-cb39a0eafd030829c0081e698cb934fd4f09692f.zip |
Merge branch 'master' of ssh://github.com/netblue30/firejail
Diffstat (limited to 'src/jailcheck/main.c')
-rw-r--r-- | src/jailcheck/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jailcheck/main.c b/src/jailcheck/main.c index 27da309ea..6cc5cf904 100644 --- a/src/jailcheck/main.c +++ b/src/jailcheck/main.c | |||
@@ -86,7 +86,7 @@ int main(int argc, char **argv) { | |||
86 | 86 | ||
87 | // user setup | 87 | // user setup |
88 | if (getuid() != 0) { | 88 | if (getuid() != 0) { |
89 | fprintf(stderr, "Error: you need to be root (via sudo) to run this program\n"); | 89 | fprintf(stderr, "Error: you need to be root (via sudo or doas) to run this program\n"); |
90 | exit(1); | 90 | exit(1); |
91 | } | 91 | } |
92 | user_name = get_sudo_user(); | 92 | user_name = get_sudo_user(); |
@@ -120,6 +120,7 @@ int main(int argc, char **argv) { | |||
120 | // basic sysfiles | 120 | // basic sysfiles |
121 | sysfiles_setup("/etc/shadow"); | 121 | sysfiles_setup("/etc/shadow"); |
122 | sysfiles_setup("/etc/gshadow"); | 122 | sysfiles_setup("/etc/gshadow"); |
123 | sysfiles_setup("/usr/bin/doas"); | ||
123 | sysfiles_setup("/usr/bin/mount"); | 124 | sysfiles_setup("/usr/bin/mount"); |
124 | sysfiles_setup("/usr/bin/su"); | 125 | sysfiles_setup("/usr/bin/su"); |
125 | sysfiles_setup("/usr/bin/ksu"); | 126 | sysfiles_setup("/usr/bin/ksu"); |