mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3254] seccomp with filter based on flags argument of syscall #2042
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2042
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @s3rj1k on GitHub (Feb 27, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3254
Can firejail block
Opensyscall with only specific argument, likeO_RDWR?If not can you please suggest another approach, for testing purposes, that can block specific syscall argument when running arbitrarily elf?
@topimiettinen commented on GitHub (Feb 27, 2020):
This would be doable with seccomp filters in general, as the filters have access to registers which contain system call parameters and then logical and arithmetic operations can be done with them. But Firejail constructs filters which can only block or allow system calls completely, finer control isn't available. You could modify Firejail to load your own seccomp filter to do that.
@s3rj1k commented on GitHub (Feb 27, 2020):
Hmm, thanks @topimiettinen