aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-04-29 10:49:48 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2018-04-29 10:49:48 -0400
commit2fd004f74c6077af29caec6287cdd086a55da6f7 (patch)
treec0b881f0fac3a2a968eae6c865d7e2f54a5c6b97 /src/lib
parentwhitelist haderning - based on an idea from smitsohu (diff)
downloadfirejail-2fd004f74c6077af29caec6287cdd086a55da6f7.tar.gz
firejail-2fd004f74c6077af29caec6287cdd086a55da6f7.tar.zst
firejail-2fd004f74c6077af29caec6287cdd086a55da6f7.zip
firecfg fix for Ubuntu 18.04
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/firejail_user.c3
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