-
Notifications
You must be signed in to change notification settings - Fork 218
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
TOCTOU Bug for chmod #1175
Comments
Could change to fstat and fchmod. |
ArielSAdamsNASA
pushed a commit
to ArielSAdamsNASA/osal
that referenced
this issue
Oct 13, 2021
ArielSAdamsNASA
pushed a commit
to ArielSAdamsNASA/osal
that referenced
this issue
Oct 13, 2021
ArielSAdamsNASA
pushed a commit
to ArielSAdamsNASA/osal
that referenced
this issue
Oct 13, 2021
ArielSAdamsNASA
pushed a commit
to ArielSAdamsNASA/osal
that referenced
this issue
Oct 13, 2021
ArielSAdamsNASA
pushed a commit
to ArielSAdamsNASA/osal
that referenced
this issue
Oct 13, 2021
ArielSAdamsNASA
pushed a commit
to ArielSAdamsNASA/osal
that referenced
this issue
Oct 19, 2021
ArielSAdamsNASA
pushed a commit
to ArielSAdamsNASA/osal
that referenced
this issue
Oct 19, 2021
ArielSAdamsNASA
pushed a commit
to ArielSAdamsNASA/osal
that referenced
this issue
Oct 19, 2021
ArielSAdamsNASA
pushed a commit
to ArielSAdamsNASA/osal
that referenced
this issue
Oct 19, 2021
jphickey
pushed a commit
to jphickey/osal
that referenced
this issue
Aug 10, 2022
Fix nasa#1160, Shorten task info default filename
dzbaker
added a commit
that referenced
this issue
Oct 3, 2022
Fix #1175, Use fstat and fchmod for TOCTOU Bug
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Calling function chmod that uses Filename after a check function. This can cause a time-of-check, time-of-use race condition.
Expected behavior
Use fchmod as seen in OS_FileChmod_Impl.
Code snips
osal/ut_assert/src/uttools.c
Lines 62 to 69 in 42af0f7
osal/ut_assert/src/uttools.c
Lines 111 to 117 in 42af0f7
System observed on:
Coverity: https://scan.coverity.com/projects/arielsadamsnasa-cfs-jsf-rules?tab=overview
Reporter Info
Ariel Adams, ASRC Federal
The text was updated successfully, but these errors were encountered: