mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #6761] [MERGED] feature: use non-blocking flock calls #6159
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#6159
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?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/6761
Author: @jlimor-kl
Created: 5/28/2025
Status: ✅ Merged
Merged: 6/22/2025
Merged by: @kmk3
Base:
master← Head:master📝 Commits (1)
9ea281ffeature: use non-blocking flock calls📊 Changes
1 file changed (+30 additions, -3 deletions)
View changed files
📝
src/firejail/preproc.c(+30 -3)📄 Description
As reported by @hlein in #6729, if a firejailed process is
^Z'd at thewrong time during startup, other firejail processes will be unable to
proceed because they'll wait forever for an flock on
/run/firejail/firejail-run.lock.This builds upon commit
f4b8c6dbb("bugfix: fix potential deadlock withflock + SIGTSTP (#6750)", 2025-05-21) to add a busy wait while
attempting to acquire a lock. This allows the application to bail out if
it fails to acquire a lock after a given timeout.
Behavior after this patch (we use SIGSTOP, as that cannot be
caught/ignored):
Enhances commit
f4b8c6dbb("bugfix: fix potential deadlock with flock +SIGTSTP (#6750)", 2025-05-21).
Suggested-by: @hlein
Co-authored-by: @kmk3
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.