diff options
author | netblue30 <netblue30@yahoo.com> | 2018-04-20 09:28:42 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2018-04-20 09:28:42 -0400 |
commit | 3fe1b06a36cefc497e957b603d1a5231ba7fbc02 (patch) | |
tree | 7fcb14ff2fc3752ea1438177a6324134e5823caf /src/lib/firejail_user.c | |
parent | mkuid: fall back to default values if no UID_MIN / GID_MIN found (diff) | |
download | firejail-3fe1b06a36cefc497e957b603d1a5231ba7fbc02.tar.gz firejail-3fe1b06a36cefc497e957b603d1a5231ba7fbc02.tar.zst firejail-3fe1b06a36cefc497e957b603d1a5231ba7fbc02.zip |
cleanup
Diffstat (limited to 'src/lib/firejail_user.c')
-rw-r--r-- | src/lib/firejail_user.c | 6 |
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)) { |