aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/firejail/fs.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c
index 50e55f868..f4c448024 100644
--- a/src/firejail/fs.c
+++ b/src/firejail/fs.c
@@ -604,6 +604,18 @@ void fs_proc_sys_dev_boot(void) {
604 if (stat("/dev/port", &s) == 0) { 604 if (stat("/dev/port", &s) == 0) {
605 disable_file(BLACKLIST_FILE, "/dev/port"); 605 disable_file(BLACKLIST_FILE, "/dev/port");
606 } 606 }
607
608 if (getuid() != 0) {
609 // disable /dev/kmsg
610 if (stat("/dev/kmsg", &s) == 0) {
611 disable_file(BLACKLIST_FILE, "/dev/kmsg");
612 }
613
614 // disable /proc/kmsg
615 if (stat("/proc/kmsg", &s) == 0) {
616 disable_file(BLACKLIST_FILE, "/proc/kmsg");
617 }
618 }
607} 619}
608 620
609// disable firejail configuration in /etc/firejail and in ~/.config/firejail 621// disable firejail configuration in /etc/firejail and in ~/.config/firejail