diff options
author | Tomohiro Kusumi <[email protected]> | 2019-12-14 08:02:23 +0900 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-12-13 15:02:23 -0800 |
commit | ddb4e69db5eb0ed741dc4e32714af3e0f054086c (patch) | |
tree | 36c28e36874c8e010fd3d6a375f862902018433f /tests/runfiles | |
parent | c317c8c811873c4a0fefd41bd317bf266a29f966 (diff) |
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 <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Tomohiro Kusumi <[email protected]>
Closes #8997
Closes #8998
Diffstat (limited to 'tests/runfiles')
-rw-r--r-- | tests/runfiles/linux.run | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runfiles/linux.run b/tests/runfiles/linux.run index 2ef8e1b49..5fe16bcfb 100644 --- a/tests/runfiles/linux.run +++ b/tests/runfiles/linux.run @@ -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] |