diff options
author | Vivek Goyal <vgoyal@redhat.com> | 2021-03-25 16:18:23 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2021-04-14 10:40:57 +0200 |
commit | 550a7d3bc0c4049ef8d36ff4d9ed7082ee8cb5ec (patch) | |
tree | 7d2266a677214950a303ae1eb69803a0faeff9c4 /fs/fuse/file.c | |
parent | fuse: extend FUSE_SETXATTR request (diff) | |
download | linux-550a7d3bc0c4049ef8d36ff4d9ed7082ee8cb5ec.tar.xz linux-550a7d3bc0c4049ef8d36ff4d9ed7082ee8cb5ec.zip |
fuse: add a flag FUSE_SETXATTR_ACL_KILL_SGID to kill SGID
When posix access ACL is set, it can have an effect on file mode and it can
also need to clear SGID if.
- None of caller's group/supplementary groups match file owner group.
AND
- Caller is not priviliged (No CAP_FSETID).
As of now fuser server is responsible for changing the file mode as
well. But it does not know whether to clear SGID or not.
So add a flag FUSE_SETXATTR_ACL_KILL_SGID and send this info with SETXATTR
to let file server know that sgid needs to be cleared as well.
Reported-by: Luis Henriques <lhenriques@suse.de>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/file.c')
0 files changed, 0 insertions, 0 deletions