mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2725] --timeout results in approximately 2 seconds of latency for all executions #1715
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#1715
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 @apmorton on GitHub (May 26, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2725
c8e3cb72d4/src/firejail/sandbox.c (L306)For some use cases this makes the timeout functionality unusable.
I have looked into solutions and I believe using
timer_createto send a signal and configuring the signal to interrupt library calls should work.I will take a stab at this sometime this week (after the release on Monday).
@netblue30 commented on GitHub (Jul 4, 2019):
Actually, the process runs one second less than what it was specified in --timeout (BUG!), then it receives SIGTERM and the sandbox waits one second end closes down. Here is a simple test program:
It counts in 100ms increments. gcc file.c and run under firejail:
So, there is a 0.2 s sandbox overhead that includes the 0.1 s wait after SIGTERM.
fix for the lost second on mainline:
d690842346