-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
lib/vfscore: Fix wrong application of umask #990
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good from my side. Thanks @andreittr!
Reviewed-by: Radu Nichita radunichita99@gmail.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, thanks.
Reviewed-by: Eduard Vintilă eduard.vintila47@gmail.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved-by: Razvan Deaconescu razvand@unikraft.io
Previously vfscore would apply the umask to the mode bits in the emulated libc functions `open` and `openat`, instead of within the open/openat syscall implementation where it would be correct to do so. This lead to the umask being ignored when a real libc was in use. This change fixes this bug, restoring expected behavior with or without a libc. Signed-off-by: Andrei Tatar <andrei@unikraft.io>
6a1462e
to
75f42ed
Compare
✅ Checkpatch passed Beep boop! I ran Unikraft's
|
Description of changes
Previously vfscore would apply the umask to the mode bits in the emulated libc functions
open
andopenat
, instead of within the open/openat syscall implementation where it would be correct to do so. This lead to the umask being ignored when a real libc was in use. This change fixes this bug, restoring expected behavior with or without a libc.Prerequisite checklist
checkpatch.uk
on your commit series before opening this PR;Base target
Additional configuration
Test with: