mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Don't fail to apply umask for O_TMPFILE files
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
This commit is contained in:
committed by
Brian Behlendorf
parent
c317c8c811
commit
ddb4e69db5
@@ -118,7 +118,8 @@ tests = ['snapshot_015_pos', 'snapshot_016_pos']
|
||||
tags = ['functional', 'snapshot']
|
||||
|
||||
[tests/functional/tmpfile:Linux]
|
||||
tests = ['tmpfile_001_pos', 'tmpfile_002_pos', 'tmpfile_003_pos']
|
||||
tests = ['tmpfile_001_pos', 'tmpfile_002_pos', 'tmpfile_003_pos',
|
||||
'tmpfile_stat_mode']
|
||||
tags = ['functional', 'tmpfile']
|
||||
|
||||
[tests/functional/upgrade:Linux]
|
||||
|
||||
Reference in New Issue
Block a user