diff options
author | Yang Xu <[email protected]> | 2022-07-14 14:11:26 +0800 |
---|---|---|
committer | Christian Brauner (Microsoft) <[email protected]> | 2022-07-19 15:13:20 +0200 |
commit | ac6800e279a22b28f4fc21439843025a0d5bf03e (patch) | |
tree | cb657f7feb98cd45db54331a955cc81d9395c0f6 /tools/perf/util/trace-event-scripting.c | |
parent | 2b3416ceff5e6bd4922f6d1c61fb68113dd82302 (diff) |
fs: Add missing umask strip in vfs_tmpfile
All creation paths except for O_TMPFILE handle umask in the vfs directly
if the filesystem doesn't support or enable POSIX ACLs. If the filesystem
does then umask handling is deferred until posix_acl_create().
Because, O_TMPFILE misses umask handling in the vfs it will not honor
umask settings. Fix this by adding the missing umask handling.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 60545d0d4610 ("[O_TMPFILE] it's still short a few helpers, but infrastructure should be OK now...")
Cc: <[email protected]> # 4.19+
Reported-by: Christian Brauner (Microsoft) <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Reviewed-and-Tested-by: Jeff Layton <[email protected]>
Acked-by: Christian Brauner (Microsoft) <[email protected]>
Signed-off-by: Yang Xu <[email protected]>
Signed-off-by: Christian Brauner (Microsoft) <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions