aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/fs_bin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/fs_bin.c')
-rw-r--r--src/firejail/fs_bin.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/firejail/fs_bin.c b/src/firejail/fs_bin.c
index 0105716b2..38b9b06ca 100644
--- a/src/firejail/fs_bin.c
+++ b/src/firejail/fs_bin.c
@@ -137,7 +137,7 @@ static void duplicate(char *fname) {
137 char *actual_path = realpath(full_path, NULL); 137 char *actual_path = realpath(full_path, NULL);
138 if (actual_path) { 138 if (actual_path) {
139 // copy the file 139 // copy the file
140 if (asprintf(&cmd, "%s -a %s %s/%s", CP_COMMAND, actual_path, BIN_DIR, fname) == -1) 140 if (asprintf(&cmd, "%s -a %s %s/%s", RUN_CP_COMMAND, actual_path, RUN_BIN_DIR, fname) == -1)
141 errExit("asprintf"); 141 errExit("asprintf");
142 if (arg_debug) 142 if (arg_debug)
143 printf("%s\n", cmd); 143 printf("%s\n", cmd);
@@ -168,12 +168,12 @@ void fs_private_bin_list(void) {
168 168
169 // create /tmp/firejail/mnt/bin directory 169 // create /tmp/firejail/mnt/bin directory
170 fs_build_mnt_dir(); 170 fs_build_mnt_dir();
171 int rv = mkdir(BIN_DIR, S_IRWXU | S_IRWXG | S_IRWXO); 171 int rv = mkdir(RUN_BIN_DIR, S_IRWXU | S_IRWXG | S_IRWXO);
172 if (rv == -1) 172 if (rv == -1)
173 errExit("mkdir"); 173 errExit("mkdir");
174 if (chown(BIN_DIR, 0, 0) < 0) 174 if (chown(RUN_BIN_DIR, 0, 0) < 0)
175 errExit("chown"); 175 errExit("chown");
176 if (chmod(BIN_DIR, 0755) < 0) 176 if (chmod(RUN_BIN_DIR, 0755) < 0)
177 errExit("chmod"); 177 errExit("chmod");
178 178
179 // copy the list of files in the new etc directory 179 // copy the list of files in the new etc directory
@@ -211,8 +211,8 @@ void fs_private_bin_list(void) {
211 i = 0; 211 i = 0;
212 while (paths[i]) { 212 while (paths[i]) {
213 if (arg_debug) 213 if (arg_debug)
214 printf("Mount-bind %s on top of %s\n", BIN_DIR, paths[i]); 214 printf("Mount-bind %s on top of %s\n", RUN_BIN_DIR, paths[i]);
215 if (mount(BIN_DIR, paths[i], NULL, MS_BIND|MS_REC, NULL) < 0) 215 if (mount(RUN_BIN_DIR, paths[i], NULL, MS_BIND|MS_REC, NULL) < 0)
216 errExit("mount bind"); 216 errExit("mount bind");
217 i++; 217 i++;
218 } 218 }