-
Notifications
You must be signed in to change notification settings - Fork 632
Open
Labels
enhancementNew feature requestNew feature request
Description
I was playing with the seccomp filter of my tor-browser setup (https://github.com/rusty-snake/firejailed-tor-browser) and noticed a few things.
- All syscall from
@mountare in@default.
firejail/etc/templates/syscalls.txt
Line 45 in 7180f26
| @mount=chroot,mount,pivot_root,umount,umount2 |
firejail/etc/templates/syscalls.txt
Line 36 in 7180f26
| @default=@clock,@cpu-emulation,@debug,@module,@obsolete,@raw-io,@reboot,@swap,open_by_handle_at,name_to_handle_at,ioprio_set,ni_syscall,syslog,fanotify_init,kcmp,add_key,request_key,mbind,migrate_pages,move_pages,keyctl,io_setup,io_destroy,io_getevents,io_submit,io_cancel,remap_file_pages,set_mempolicyvmsplice,umount,userfaultfd,acct,bpf,chroot,mount,nfsservctl,pivot_root,setdomainname,sethostname,umount2,vhangup |
@aiois in@default, exceptio_pgetevents.
firejail/etc/templates/syscalls.txt
Line 30 in 7180f26
| @aio=io_cancel,io_destroy,io_getevents,io_pgetevents,io_setup,io_submit |
Line one: @aio syscalls in @default.
Line two: @aio.
io_cancel,io_destroy,io_getevents, io_setup,io_submit
io_cancel,io_destroy,io_getevents,io_pgetevents,io_setup,io_submit
@sysem-serviceshould not be used. Why? Let my explain.
@sysem-serviceis a group forseccomp.keepand not forseccomp.drop, therefore it is a whitelisting group (as in systemd).
@defaultis a blacklisting only group forseccomp.drop. It includes@obsolete.
@sysem-serviceincludes@defaultand therefore also@obsolete, since@sysem-servicehas so much syscalls that it hardly never will be used forseccomp.drop. It will be used forseccomp.keep, but it includes@obsoletewhich should never be whitelisted except a program needs all the syscalls from there.
firejail/etc/templates/syscalls.txt
Lines 62 to 88 in 7180f26
| +---------------+ | |
| | @default-keep | | |
| | @mount | | |
| +---------------+ | |
| +----------------+ +---------+ +--------+ +--------------+ | |
| | @cpu-emulation | | @clock | | @chown | | @aio | | |
| | @debug | | @module | +--------+ | @basic-io | | |
| | @obsolete | | @raw-io | : : | @file-system | | |
| +----------------+ | @reboot | : : | @io-event | | |
| : | @swap | : : | @ipc | | |
| : +---------+ : : | @keyring | | |
| : : : : : | @memlock | | |
| : ..............: : : : | @network-io | | |
| : : : ........: : | @process | | |
| : : : : : | @resources | | |
| +----------+ +-------------+ : | @setuid | | |
| | @default | | @privileged | : | @signal | | |
| +----------+ +-------------+ : | @sync | | |
| : : : | @timer | | |
| : :........................... : +--------------+ | |
| : : : : | |
| +----------------------+ +-----------------+ | |
| | @default-nodebuggers | | @system-service | | |
| +----------------------+ +-----------------+ | |
topimiettinen and ericschdt
Metadata
Metadata
Assignees
Labels
enhancementNew feature requestNew feature request