aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-08-16 15:43:50 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-08-16 15:43:50 -0400
commit3bfb00f627f5d4ff6879d886165fb751868527b0 (patch)
tree85d57bb0b7487af3637936a82a4115b9d0c11341
parentmoved warning under --debug option (diff)
downloadfirejail-3bfb00f627f5d4ff6879d886165fb751868527b0.tar.gz
firejail-3bfb00f627f5d4ff6879d886165fb751868527b0.tar.zst
firejail-3bfb00f627f5d4ff6879d886165fb751868527b0.zip
removed mknod from default seccomp filter, some software packages are using named pipes created with mknod
-rw-r--r--src/firejail/seccomp.c8
-rw-r--r--src/firejail/usage.c2
-rw-r--r--src/man/firejail-profile.txt2
-rw-r--r--src/man/firejail.txt2
4 files changed, 8 insertions, 6 deletions
diff --git a/src/firejail/seccomp.c b/src/firejail/seccomp.c
index c03eb6848..d00a335c6 100644
--- a/src/firejail/seccomp.c
+++ b/src/firejail/seccomp.c
@@ -452,9 +452,11 @@ int seccomp_filter_drop(void) {
452#ifdef SYS_process_vm_writev 452#ifdef SYS_process_vm_writev
453 filter_add_blacklist(SYS_process_vm_writev); 453 filter_add_blacklist(SYS_process_vm_writev);
454#endif 454#endif
455#ifdef SYS_mknod 455
456 filter_add_blacklist(SYS_mknod); 456// mknod removed in 0.9.29
457#endif 457//#ifdef SYS_mknod
458// filter_add_blacklist(SYS_mknod);
459//#endif
458 460
459 // new syscalls in 0.9,23 461 // new syscalls in 0.9,23
460#ifdef SYS_sysfs 462#ifdef SYS_sysfs
diff --git a/src/firejail/usage.c b/src/firejail/usage.c
index 9aeb5895d..3afe5580f 100644
--- a/src/firejail/usage.c
+++ b/src/firejail/usage.c
@@ -190,7 +190,7 @@ void usage(void) {
190 printf("\t\tlist. The default list is as follows: mount, umount2,\n"); 190 printf("\t\tlist. The default list is as follows: mount, umount2,\n");
191 printf("\t\tptrace, kexec_load, open_by_handle_at, init_module,\n"); 191 printf("\t\tptrace, kexec_load, open_by_handle_at, init_module,\n");
192 printf("\t\tfinit_module, delete_module, iopl, ioperm, swapon, swapoff,\n"); 192 printf("\t\tfinit_module, delete_module, iopl, ioperm, swapon, swapoff,\n");
193 printf("\t\tmknode, syslog, process_vm_readv and process_vm_writev\n"); 193 printf("\t\tsyslog, process_vm_readv and process_vm_writev\n");
194 printf("\t\tsysfs,_sysctl, adjtimex, clock_adjtime, lookup_dcookie,\n"); 194 printf("\t\tsysfs,_sysctl, adjtimex, clock_adjtime, lookup_dcookie,\n");
195 printf("\t\tperf_event_open, fanotify_init and kcmp.\n\n"); 195 printf("\t\tperf_event_open, fanotify_init and kcmp.\n\n");
196 196
diff --git a/src/man/firejail-profile.txt b/src/man/firejail-profile.txt
index 4941d8b8b..7be5304c1 100644
--- a/src/man/firejail-profile.txt
+++ b/src/man/firejail-profile.txt
@@ -106,7 +106,7 @@ Whitelist Linux capabilities filter.
106\f\seccomp 106\f\seccomp
107Enable default seccomp filter. The default list is as follows: 107Enable default seccomp filter. The default list is as follows:
108mount, umount2, ptrace, kexec_load, open_by_handle_at, init_module, finit_module, delete_module, 108mount, umount2, ptrace, kexec_load, open_by_handle_at, init_module, finit_module, delete_module,
109iopl, ioperm, swapon, swapoff, mknode, syslog, process_vm_readv and process_vm_writev, 109iopl, ioperm, swapon, swapoff, syslog, process_vm_readv and process_vm_writev,
110sysfs,_sysctl, adjtimex, clock_adjtime, lookup_dcookie, perf_event_open, fanotify_init and kcmp. 110sysfs,_sysctl, adjtimex, clock_adjtime, lookup_dcookie, perf_event_open, fanotify_init and kcmp.
111.TP 111.TP
112\f\seccomp syscall,syscall,syscall 112\f\seccomp syscall,syscall,syscall
diff --git a/src/man/firejail.txt b/src/man/firejail.txt
index 3e399db72..0b7ed1434 100644
--- a/src/man/firejail.txt
+++ b/src/man/firejail.txt
@@ -742,7 +742,7 @@ $ firejail \-\-net=eth0 \-\-scan
742\fB\-\-seccomp 742\fB\-\-seccomp
743Enable seccomp filter and blacklist the syscalls in the default list. The default list is as follows: 743Enable seccomp filter and blacklist the syscalls in the default list. The default list is as follows:
744mount, umount2, ptrace, kexec_load, open_by_handle_at, init_module, finit_module, delete_module, 744mount, umount2, ptrace, kexec_load, open_by_handle_at, init_module, finit_module, delete_module,
745iopl, ioperm, swapon, swapoff, mknode, syslog, process_vm_readv and process_vm_writev, 745iopl, ioperm, swapon, swapoff, syslog, process_vm_readv and process_vm_writev,
746sysfs,_sysctl, adjtimex, clock_adjtime, lookup_dcookie, perf_event_open, fanotify_init and kcmp. 746sysfs,_sysctl, adjtimex, clock_adjtime, lookup_dcookie, perf_event_open, fanotify_init and kcmp.
747.br 747.br
748 748