-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code scanning alerts (CodeQL CWE-367/TOCTOU warnings) #4503
Comments
Is anyone already working on this? I think I managed to fix some of them; |
I wanted to have a look at it, but didn't find the time so far. Please go ahead. :) |
@kmk3 Feel free to open PRs for the ones you already worked on. No need to fix all of them at once. |
Alright, I'll try to wrap up the branch and open a PR. I have indeed not fully |
This should fix all such warnings on the following files: * src/fids/main.c * src/firejail/fs.c * src/firejail/seccomp.c 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". See https://cwe.mitre.org/data/definitions/367.html Relates to netblue30#4503.
This should fix all such warnings on the following files: * src/fids/main.c * src/firejail/fs.c * src/firejail/seccomp.c 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 netblue30#4503.
Sorry for the delay; I've opened #4652 with just the more trivial fixes to get |
Insteresting, edit: this explains it Line 45 in d04f63c
|
@rusty-snake Could you please share |
|
@rusty-snake Thank you. |
This should fix all such warnings on the following files: * src/fids/main.c * src/firejail/seccomp.c 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 netblue30#4503.
GitHub seems to have updated CodeQL.
https://github.com/netblue30/firejail/security/code-scanning
Can someone have a look whether this are false-positives or unproblematic alerts.
@netblue30 @smitsohu @reinerh
The text was updated successfully, but these errors were encountered: