diff options
author | netblue30 <netblue30@yahoo.com> | 2018-04-29 10:49:48 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2018-04-29 10:49:48 -0400 |
commit | 2fd004f74c6077af29caec6287cdd086a55da6f7 (patch) | |
tree | c0b881f0fac3a2a968eae6c865d7e2f54a5c6b97 | |
parent | whitelist haderning - based on an idea from smitsohu (diff) | |
download | firejail-2fd004f74c6077af29caec6287cdd086a55da6f7.tar.gz firejail-2fd004f74c6077af29caec6287cdd086a55da6f7.tar.zst firejail-2fd004f74c6077af29caec6287cdd086a55da6f7.zip |
firecfg fix for Ubuntu 18.04
-rw-r--r-- | src/lib/firejail_user.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/firejail_user.c b/src/lib/firejail_user.c index 09a4da0e7..0cc0ac6c1 100644 --- a/src/lib/firejail_user.c +++ b/src/lib/firejail_user.c | |||
@@ -47,7 +47,8 @@ int firejail_user_check(const char *name) { | |||
47 | return 1; | 47 | return 1; |
48 | 48 | ||
49 | // other system users will run the program as is | 49 | // other system users will run the program as is |
50 | if (getuid() < UID_MIN || strcmp(name, "nobody") == 0) | 50 | uid_t uid = getuid(); |
51 | if ((uid < UID_MIN && uid != 0) || strcmp(name, "nobody") == 0) | ||
51 | return 0; | 52 | return 0; |
52 | 53 | ||
53 | // check file existence | 54 | // check file existence |