mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #235] Make debugging easier #168
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#168
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 @trou on GitHub (Jan 19, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/235
Hello,
currently it can be very difficult to debug problems due to policies. For example, enigmail in thunderbird doesn't work when GPG is using a smartcard, but I cannot find why.
Since firejail is suid, stracing is impossible, --trace doesn't give all syscalls and its output is only available to stdout (which breaks Enigmail for example).
It would be nice to have a --strace mode that could output to a file :)
@netblue30 commented on GitHub (Jan 20, 2016):
strace depends on ptrace system call. ptrace is one of the first syscalls disabled by seccomp. Enabling it inside the sandbox is a huge security risk.
This is how I debug it. I start with /etc/firejail/thunderbird.profile where I comment out all the lines in the file. Then, I bring them in one by one to see where is breaking. If you suspect it is seccomp, comment out seccomp line. Also monitor your syslog for seccomp messages. They look like this:
In this case the process is killed by syscall 250 - keyctl.