mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #4652] [MERGED] Fix TOCTOU/CodeQL CWE-367 warnings (easy ones + fs.c) #5216
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#5216
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/4652
Author: @kmk3
Created: 10/29/2021
Status: ✅ Merged
Merged: 11/11/2021
Merged by: @netblue30
Base:
master← Head:fix-toctou-easy📝 Commits (2)
908f8adFix TOCTOU/CodeQL CWE-367 warnings (easy ones)ddb828bfs.c: Fix TOCTOU/CodeQL CWE-367 warning📊 Changes
3 files changed (+38 additions, -30 deletions)
View changed files
📝
src/fids/main.c(+13 -6)📝
src/firejail/fs.c(+22 -21)📝
src/firejail/seccomp.c(+3 -3)📄 Description
This should fix all such warnings on the following files:
Misc: Besides the above reason, these are some of the more
straightforward TOCTOU warning fixes and they are done without any
additional refactor commits, so that's the reason for "easy ones".
List of TOCTOU warnings:
https://github.com/netblue30/firejail/security/code-scanning?query=id%3Acpp%2Ftoctou-race-condition
See https://cwe.mitre.org/data/definitions/367.html
Relates to #4503.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.