mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1013] "Error mkdir" appears inconsistently #690
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#690
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 @randyheydon on GitHub (Dec 30, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1013
I regularly start two programs with firejail in my xinitrc. Rarely, but without any pattern I can find, one or both of them will fail, printing this to stderr:
The commands in the xinitrc file were originally
firejail syncthing-gtk --minimized &andfirejail redshift-gtk -l [location] &. When a failure occurs, rerunning those commands will reliable start the program in a jail. In order to capture this error message, I have changed the commands in the xinitrc to:When this error is hit, nothing else appears on stdout or stderr. Both of these commands are using custom profiles, but it doesn't look like firejail is even getting far enough to read them.
@thomasjfox commented on GitHub (Jan 9, 2017):
Could you add a "sleep 3" between the two background forked commands?
May be it's a timing issue if two firejail instances are starting up at the same time.
@netblue30 commented on GitHub (Jan 9, 2017):
I think this is it, thanks @thomasjfox! Both instances are competing to create directories in /run, stepping on each other. When you start the computer /run is not populated. The first firejail instance will create a bunch of directories there:
Two firejail instances trying to create the same bunch will clash, one of them will fail miserably. I'll put a file lock or something under /tmp to fix it. Until then, add a sleep(3).
@BafDyce commented on GitHub (Jun 29, 2017):
Is this issue still relevant?
Since the issue was reported (v0.9.44.2), the code for creating directories (recursively) changed quite a lot.
I also experimented a bit (with the latest version) with launching multiple firejail processes at the same time, did not have a single crash.
@randyheydon commented on GitHub (Jun 29, 2017):
As of yesterday, I was still getting failures to launch with version 0.9.48. I did not check the error text, so I suppose it could have been something else, but I don't know for certain. Note that this only applies on firejail's first run after startup; after it's been run, any number of other firejail instances can be started simultaneously without issue.
@BafDyce commented on GitHub (Jun 30, 2017):
Yeah, I know that it only happens on initial startup. Thats why I deleted all contents from `/run/firejail' before launching firejail again. However, it seems like the problem is still there.
Can you check if my patch (#1359) fixes your problem?