aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/firejail/fs.c5
-rw-r--r--src/firejail/util.c1
2 files changed, 1 insertions, 5 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c
index 84f207fac..74f7bddd9 100644
--- a/src/firejail/fs.c
+++ b/src/firejail/fs.c
@@ -67,11 +67,8 @@ static void disable_file(OPERATION op, const char *filename) {
67 // they don't seem to like a uid of 0 67 // they don't seem to like a uid of 0
68 // force mounting 68 // force mounting
69 int fd = open(filename, O_PATH|O_CLOEXEC); 69 int fd = open(filename, O_PATH|O_CLOEXEC);
70 if (fd < 0) { 70 if (fd < 0)
71 if (arg_debug)
72 printf("Warning (blacklisting): cannot open %s: %s\n", filename, strerror(errno));
73 return; 71 return;
74 }
75 72
76 EUID_ROOT(); 73 EUID_ROOT();
77 int err = bind_mount_path_to_fd(RUN_RO_DIR, fd); 74 int err = bind_mount_path_to_fd(RUN_RO_DIR, fd);
diff --git a/src/firejail/util.c b/src/firejail/util.c
index a01290cf2..b35225620 100644
--- a/src/firejail/util.c
+++ b/src/firejail/util.c
@@ -255,7 +255,6 @@ static void clean_supplementary_groups(gid_t gid) {
255 return; 255 return;
256 256
257clean_all: 257clean_all:
258 fwarning("cleaning all supplementary groups\n");
259 if (setgroups(0, NULL) < 0) 258 if (setgroups(0, NULL) < 0)
260 errExit("setgroups"); 259 errExit("setgroups");
261} 260}