-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
zfs ignores umask for files created with O_TMPFILE unless acltype=posixacl #8997
Comments
sorry pressed open too soon |
gyakovlev
changed the title
tmpfile
zfs ignores umask for files created with O_TMPFILE unless acltype=posixacl
Jul 6, 2019
Extra note: proximate cause is lack of umask application for noacl case. MusicPlayerDaemon/MPD#558 (comment) has example fixes for other filesystems (don't know if it's a correct approach or generic vfs layer would be better place to enforce umask handling). |
12 tasks
tonyhutter
pushed a commit
to tonyhutter/zfs
that referenced
this issue
Dec 26, 2019
Apply umask to `mode` which will eventually be applied to inode. This is needed since VFS doesn't apply umask for O_TMPFILE files. (Note that zpl_init_acl() applies `ip->i_mode &= ~current_umask();` only when POSIX ACL is used.) Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Closes openzfs#8997 Closes openzfs#8998
tonyhutter
pushed a commit
to tonyhutter/zfs
that referenced
this issue
Dec 27, 2019
Apply umask to `mode` which will eventually be applied to inode. This is needed since VFS doesn't apply umask for O_TMPFILE files. (Note that zpl_init_acl() applies `ip->i_mode &= ~current_umask();` only when POSIX ACL is used.) Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Closes openzfs#8997 Closes openzfs#8998
tonyhutter
pushed a commit
that referenced
this issue
Jan 23, 2020
Apply umask to `mode` which will eventually be applied to inode. This is needed since VFS doesn't apply umask for O_TMPFILE files. (Note that zpl_init_acl() applies `ip->i_mode &= ~current_umask();` only when POSIX ACL is used.) Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Closes #8997 Closes #8998
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System information
Describe the problem you're observing
zfs seems to be ignoring umask if files created with
O_TMPFILE
unlessacltype=posixacl
detailed explanation here https://bugs.gentoo.org/686142
Describe how to reproduce the problem
minimal reproducer (credits: @trofi)
as you can see with
posixacl
it honors umask and does not withnoacl
Include any warning/errors/backtraces from the system logs
The text was updated successfully, but these errors were encountered: