mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3488] Seccomp error action not working #2195
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#2195
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 @sfc-gh-hyu on GitHub (Jul 3, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3488
I compiled with latest master and specified seccomp error action to be EPERM. However, it seems that firejail still kill the process.
And here is the log
Not sure what I am doing wrong.
@topimiettinen commented on GitHub (Jul 3, 2020):
Please attach the entire log. Firejail is trying to execute
/tmp/file, is this what you meant? What kind of application is it?@sfc-gh-hyu commented on GitHub (Jul 3, 2020):
Ah sorry. Should be more specific. It's my own test program, which just open and close a file. Here is the cpp source code.
Here is the full log:
@topimiettinen commented on GitHub (Jul 3, 2020):
The program works for me:
But using strace as root user from another terminal shows that the program doesn't use
open()butopenat():18849 openat(AT_FDCWD, "/tmp/test", O_RDONLY|O_CREAT|O_APPEND, 011) = 3This is because a modern libc will translate calls to
open()toopenat(). Changing the filter to--seccomp.drop=openat, stracing shows:So there is a bug.
@topimiettinen commented on GitHub (Jul 3, 2020):
2345cc4c7broke the environment variable passing for error action for fseccomp.@topimiettinen commented on GitHub (Jul 3, 2020):
Fixed in master, please check.
@sfc-gh-hyu commented on GitHub (Jul 3, 2020):
Confirmed fix. Thanks for that!