aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/fs_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/fs_lib.c')
-rw-r--r--src/firejail/fs_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/firejail/fs_lib.c b/src/firejail/fs_lib.c
index 5df356d04..8369e6259 100644
--- a/src/firejail/fs_lib.c
+++ b/src/firejail/fs_lib.c
@@ -203,7 +203,7 @@ void fslib_mount_libs(const char *full_path, unsigned user) {
203 } 203 }
204 204
205 if (arg_debug || arg_debug_private_lib) 205 if (arg_debug || arg_debug_private_lib)
206 printf(" fslib_mount_libs %s (parse as %s)\n", full_path, user ? "user" : "root"); 206 printf(" fslib_mount_libs %s\n", full_path);
207 // create an empty RUN_LIB_FILE and allow the user to write to it 207 // create an empty RUN_LIB_FILE and allow the user to write to it
208 unlink(RUN_LIB_FILE); // in case is there 208 unlink(RUN_LIB_FILE); // in case is there
209 create_empty_file_as_root(RUN_LIB_FILE, 0644); 209 create_empty_file_as_root(RUN_LIB_FILE, 0644);
@@ -212,7 +212,7 @@ void fslib_mount_libs(const char *full_path, unsigned user) {
212 212
213 // run fldd to extract the list of files 213 // run fldd to extract the list of files
214 if (arg_debug || arg_debug_private_lib) 214 if (arg_debug || arg_debug_private_lib)
215 printf(" running fldd %s\n", full_path); 215 printf(" running fldd %s as %s\n", full_path, user ? "user" : "root");
216 unsigned mask; 216 unsigned mask;
217 if (user) 217 if (user)
218 mask = SBOX_USER; 218 mask = SBOX_USER;
@@ -298,7 +298,7 @@ static void install_list_entry(const char *lib) {
298//printf("glob %s\n", globbuf.gl_pathv[j]); 298//printf("glob %s\n", globbuf.gl_pathv[j]);
299 // GLOB_NOCHECK - no pattern matched returns the original pattern; try to load it anyway 299 // GLOB_NOCHECK - no pattern matched returns the original pattern; try to load it anyway
300 300
301 // foobar/* includes foobar/. and foobar/.. 301 // foobar/* expands to foobar/. and foobar/..
302 const char *base = gnu_basename(globbuf.gl_pathv[j]); 302 const char *base = gnu_basename(globbuf.gl_pathv[j]);
303 if (strcmp(base, ".") == 0 || strcmp(base, "..") == 0) 303 if (strcmp(base, ".") == 0 || strcmp(base, "..") == 0)
304 continue; 304 continue;