aboutsummaryrefslogtreecommitdiffstats
path: root/src/man/firejail.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/man/firejail.txt')
-rw-r--r--src/man/firejail.txt33
1 files changed, 27 insertions, 6 deletions
diff --git a/src/man/firejail.txt b/src/man/firejail.txt
index 1bed40015..02c1d27b2 100644
--- a/src/man/firejail.txt
+++ b/src/man/firejail.txt
@@ -814,8 +814,9 @@ $ firejail \-\-machine-id
814Install a seccomp filter to block attempts to create memory mappings 814Install a seccomp filter to block attempts to create memory mappings
815that are both writable and executable, to change mappings to be 815that are both writable and executable, to change mappings to be
816executable, or to create executable shared memory. The filter examines 816executable, or to create executable shared memory. The filter examines
817the arguments of mmap, mmap2, mprotect, pkey_mprotect, memfd_create and 817the arguments of mmap, mmap2, mprotect, pkey_mprotect, memfd_create
818shmat system calls and kills the process if necessary. 818and shmat system calls and returns error EPERM to the process (or
819kills it, see \-\-seccomp-error-action below) if necessary.
819.br 820.br
820 821
821.br 822.br
@@ -1865,8 +1866,12 @@ $ firejail \-\-seccomp=@clock,mkdir,unlinkat transmission-gtk
1865.br 1866.br
1866 1867
1867.br 1868.br
1868Instead of dropping the syscall, a specific error number can be returned 1869Instead of dropping the syscall by returning EPERM, another error
1869using \fBsyscall:errorno\fR syntax. 1870number can be returned using \fBsyscall:errno\fR syntax. This can be
1871also changed globally with \-\-seccomp-error-action or
1872in /etc/firejail/firejail.config file. The process can also be killed
1873by using \fBsyscall:kill\fR syntax.
1874
1870.br 1875.br
1871 1876
1872.br 1877.br
@@ -1932,8 +1937,11 @@ $ firejail \-\-seccomp.drop=utime,utimensat,utimes,@clock
1932.br 1937.br
1933 1938
1934.br 1939.br
1935Instead of dropping the syscall, a specific error number can be returned 1940Instead of dropping the syscall by returning EPERM, another error
1936using \fBsyscall:errorno\fR syntax. 1941number can be returned using \fBsyscall:errno\fR syntax. This can be
1942also changed globally with \-\-seccomp-error-action or
1943in /etc/firejail/firejail.config file. The process can also be killed
1944by using \fBsyscall:kill\fR syntax.
1937.br 1945.br
1938 1946
1939.br 1947.br
@@ -2135,6 +2143,19 @@ $ firejail --seccomp.print=browser
2135 0049: 06 00 01 00000000 ret KILL 2143 0049: 06 00 01 00000000 ret KILL
2136.br 2144.br
2137$ 2145$
2146
2147.TP
2148\fB\-\-seccomp-error-action= kill | ERRNO
2149By default, if a seccomp filter blocks a system call, the process gets
2150EPERM as the error. With \-\-seccomp-error-action=error, another error
2151number can be returned, for example ENOSYS or EACCES. The process can
2152also be killed (like in versions <0.9.63 of Firejail) by using
2153\-\-seccomp-error-action=kill syntax. Not killing the process weakens
2154Firejail slightly when trying to contain intrusion, but it may also
2155allow tighter filters if the only alternative is to allow a system
2156call.
2157.br
2158
2138.TP 2159.TP
2139\fB\-\-shell=none 2160\fB\-\-shell=none
2140Run the program directly, without a user shell. 2161Run the program directly, without a user shell.