summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-04-20 09:28:42 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2018-04-20 09:28:42 -0400
commit3fe1b06a36cefc497e957b603d1a5231ba7fbc02 (patch)
tree7fcb14ff2fc3752ea1438177a6324134e5823caf /src/lib
parentmkuid: fall back to default values if no UID_MIN / GID_MIN found (diff)
downloadfirejail-3fe1b06a36cefc497e957b603d1a5231ba7fbc02.tar.gz
firejail-3fe1b06a36cefc497e957b603d1a5231ba7fbc02.tar.zst
firejail-3fe1b06a36cefc497e957b603d1a5231ba7fbc02.zip
cleanup
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/firejail_user.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/firejail_user.c b/src/lib/firejail_user.c
index 5d92aa133..7d9784392 100644
--- a/src/lib/firejail_user.c
+++ b/src/lib/firejail_user.c
@@ -45,6 +45,12 @@ int firejail_user_check(const char *name) {
45 if (strcmp(name, "root") == 0) 45 if (strcmp(name, "root") == 0)
46 return 1; 46 return 1;
47 47
48 // user nobody disabled by default
49 if (strcmp(name, "nobody") == 0) {
50 fprintf(stderr, "Error: user nobody is not allowed to run the sandbox\n");
51 exit(1);
52 }
53
48 // check file existence 54 // check file existence
49 char *fname = get_fname(); 55 char *fname = get_fname();
50 if (access(fname, F_OK)) { 56 if (access(fname, F_OK)) {