diff options
Diffstat (limited to 'src/firejail/fs_etc.c')
-rw-r--r-- | src/firejail/fs_etc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/fs_etc.c b/src/firejail/fs_etc.c index 76bcb751e..271e46855 100644 --- a/src/firejail/fs_etc.c +++ b/src/firejail/fs_etc.c | |||
@@ -59,6 +59,7 @@ void fs_machineid(void) { | |||
59 | if (set_perms(RUN_MACHINEID, 0, 0, 0444)) | 59 | if (set_perms(RUN_MACHINEID, 0, 0, 0444)) |
60 | errExit("set_perms"); | 60 | errExit("set_perms"); |
61 | 61 | ||
62 | selinux_relabel_path(RUN_MACHINEID, "/etc/machine-id"); | ||
62 | 63 | ||
63 | struct stat s; | 64 | struct stat s; |
64 | if (stat("/etc/machine-id", &s) == 0) { | 65 | if (stat("/etc/machine-id", &s) == 0) { |
@@ -154,6 +155,7 @@ void fs_private_dir_list(const char *private_dir, const char *private_run_dir, c | |||
154 | 155 | ||
155 | // create /run/firejail/mnt/etc directory | 156 | // create /run/firejail/mnt/etc directory |
156 | mkdir_attr(private_run_dir, 0755, 0, 0); | 157 | mkdir_attr(private_run_dir, 0755, 0, 0); |
158 | selinux_relabel_path(private_run_dir, private_dir); | ||
157 | fs_logger2("tmpfs", private_dir); | 159 | fs_logger2("tmpfs", private_dir); |
158 | 160 | ||
159 | fs_logger_print(); // save the current log | 161 | fs_logger_print(); // save the current log |