mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
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#3925
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/1359
Author: @BafDyce
Created: 6/30/2017
Status: ✅ Merged
Merged: 6/30/2017
Merged by: @netblue30
Base:
master← Head:fix-1013📝 Commits (1)
968dc2aFix race condition when setting up /run/firejail files (#1013)📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
src/firejail/util.c(+3 -1)📄 Description
This attempts to fix #1013
Which is caused by a race condition in
create_empty_dir_as_rootbetweenstatandmkdir.Note 1: I'm not quite sure what the comment
/* coverity[toctou] */does. Is it necessary that it stays in the line right above to the if statement? If yes, please tell me, then I'll reorder the comments.Note 2: There are a bunch of calls to
mkdirthroughout the code, some of them behind a similarstat-gate. Should I also add a similar change to these?Note 3: For testing, I forced race conditions by inserting a sleep right after the call to
stat🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.