aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/fs.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-01-20 20:06:06 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2023-01-20 20:06:06 -0500
commitc2b6b6b1a348d70b776983051851e42ba66ab271 (patch)
treec4d2a98348bfdd32d4ee47b5d08a4fcaa8bf534c /src/firejail/fs.c
parentRELNOTES: add modif and docs items (diff)
downloadfirejail-c2b6b6b1a348d70b776983051851e42ba66ab271.tar.gz
firejail-c2b6b6b1a348d70b776983051851e42ba66ab271.tar.zst
firejail-c2b6b6b1a348d70b776983051851e42ba66ab271.zip
private-etc rework: remove hiding blacklisted files in private-etc directory feature
Diffstat (limited to 'src/firejail/fs.c')
-rw-r--r--src/firejail/fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c
index 74f7bddd9..89a67f686 100644
--- a/src/firejail/fs.c
+++ b/src/firejail/fs.c
@@ -67,7 +67,7 @@ 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 return; 71 return;
72 72
73 EUID_ROOT(); 73 EUID_ROOT();
@@ -159,7 +159,7 @@ static void disable_file(OPERATION op, const char *filename) {
159 fs_logger2("blacklist-nolog", fname); 159 fs_logger2("blacklist-nolog", fname);
160 160
161 // files in /etc will be reprocessed during /etc rebuild 161 // files in /etc will be reprocessed during /etc rebuild
162 if (checkcfg(CFG_ETC_HIDE_BLACKLISTED) && strncmp(fname, "/etc/", 5) == 0) { 162 if (strncmp(fname, "/etc/", 5) == 0) {
163 ProfileEntry *prf = malloc(sizeof(ProfileEntry)); 163 ProfileEntry *prf = malloc(sizeof(ProfileEntry));
164 if (!prf) 164 if (!prf)
165 errExit("malloc"); 165 errExit("malloc");