aboutsummaryrefslogtreecommitdiffstats
path: root/src/jailcheck/main.c
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-07-14 04:23:58 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-07-14 09:23:28 -0300
commite7225b64469b6ada187764ee9f663ad1039f20b0 (patch)
tree01984da6c5507cc42788625b90882b11fc5c2511 /src/jailcheck/main.c
parentfirecfg: add const to a few functions/variables (diff)
downloadfirejail-e7225b64469b6ada187764ee9f663ad1039f20b0.tar.gz
firejail-e7225b64469b6ada187764ee9f663ad1039f20b0.tar.zst
firejail-e7225b64469b6ada187764ee9f663ad1039f20b0.zip
feature: add doas support in firecfg and jailcheck
Closes #5899. Suggested-by: @shaggonit
Diffstat (limited to 'src/jailcheck/main.c')
-rw-r--r--src/jailcheck/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jailcheck/main.c b/src/jailcheck/main.c
index 93d334c7a..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();