aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/fs_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/fs_dev.c')
-rw-r--r--src/firejail/fs_dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/firejail/fs_dev.c b/src/firejail/fs_dev.c
index d839a0786..523f319ed 100644
--- a/src/firejail/fs_dev.c
+++ b/src/firejail/fs_dev.c
@@ -84,14 +84,14 @@ static void deventry_mount(void) {
84 while (dev[i].dev_fname != NULL) { 84 while (dev[i].dev_fname != NULL) {
85 struct stat s; 85 struct stat s;
86 if (stat(dev[i].run_fname, &s) == 0) { 86 if (stat(dev[i].run_fname, &s) == 0) {
87 87
88 // check device type and subsystem configuration 88 // check device type and subsystem configuration
89 if ((dev[i].type == DEV_SOUND && arg_nosound == 0) || 89 if ((dev[i].type == DEV_SOUND && arg_nosound == 0) ||
90 (dev[i].type == DEV_3D && arg_no3d == 0) || 90 (dev[i].type == DEV_3D && arg_no3d == 0) ||
91 (dev[i].type == DEV_VIDEO && arg_novideo == 0) || 91 (dev[i].type == DEV_VIDEO && arg_novideo == 0) ||
92 (dev[i].type == DEV_TV && arg_notv == 0) || 92 (dev[i].type == DEV_TV && arg_notv == 0) ||
93 (dev[i].type == DEV_DVD && arg_nodvd == 0)) { 93 (dev[i].type == DEV_DVD && arg_nodvd == 0)) {
94 94
95 int dir = is_dir(dev[i].run_fname); 95 int dir = is_dir(dev[i].run_fname);
96 if (arg_debug) 96 if (arg_debug)
97 printf("mounting %s %s\n", dev[i].run_fname, (dir)? "directory": "file"); 97 printf("mounting %s %s\n", dev[i].run_fname, (dir)? "directory": "file");
@@ -113,7 +113,7 @@ static void deventry_mount(void) {
113 fclose(fp); 113 fclose(fp);
114 } 114 }
115 } 115 }
116 116
117 if (mount(dev[i].run_fname, dev[i].dev_fname, NULL, MS_BIND|MS_REC, NULL) < 0) 117 if (mount(dev[i].run_fname, dev[i].dev_fname, NULL, MS_BIND|MS_REC, NULL) < 0)
118 errExit("mounting dev file"); 118 errExit("mounting dev file");
119 fs_logger2("whitelist", dev[i].dev_fname); 119 fs_logger2("whitelist", dev[i].dev_fname);