diff options
author | Topi Miettinen <toiwoton@gmail.com> | 2020-03-27 14:22:20 +0200 |
---|---|---|
committer | Topi Miettinen <topimiettinen@users.noreply.github.com> | 2020-04-06 16:30:20 +0000 |
commit | 3f27e8483158e50050f839db343bda7a522f686d (patch) | |
tree | d8dad893d71220ff97aa7744fe7e62900075e521 /etc/firejail.config | |
parent | cleanup, fixes, more profstats (diff) | |
download | firejail-3f27e8483158e50050f839db343bda7a522f686d.tar.gz firejail-3f27e8483158e50050f839db343bda7a522f686d.tar.zst firejail-3f27e8483158e50050f839db343bda7a522f686d.zip |
Allow changing error action in seccomp filters
Let user specify the action when seccomp filters trigger:
- errno name like EPERM (default) or ENOSYS: return errno and let the process continue.
- 'kill': kill the process as previous versions
The default action is EPERM, but killing can still be specified with
syscall:kill syntax or globally with seccomp-error-action=kill. The
action can be also overridden /etc/firejail/firejail.config file.
Not killing the process weakens Firejail slightly when trying to
contain intrusion, but it may also allow tighter filters if the
only alternative is to allow a system call.
Diffstat (limited to 'etc/firejail.config')
-rw-r--r-- | etc/firejail.config | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/firejail.config b/etc/firejail.config index 6fb7d829a..410bd0ccb 100644 --- a/etc/firejail.config +++ b/etc/firejail.config | |||
@@ -146,3 +146,6 @@ | |||
146 | 146 | ||
147 | # Xvfb command extra parameters. None by default; this is an example. | 147 | # Xvfb command extra parameters. None by default; this is an example. |
148 | # xvfb-extra-params -pixdepths 8 24 32 | 148 | # xvfb-extra-params -pixdepths 8 24 32 |
149 | |||
150 | # Seccomp error action, kill or errno (EPERM, ENOSYS etc) | ||
151 | # seccomp-error-action EPERM | ||