diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2016-07-29 10:05:23 (GMT) |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2016-07-29 10:05:23 (GMT) |
commit | bb0d2b8ad29630b580ac903f989e704e23462357 (patch) | |
tree | 906ff6b0ba636472c66510c5d1776c40bc6e7755 /fs/dcache.c | |
parent | 9c630ebefeeee4363ffd29f2f9b18eddafc6479c (diff) | |
download | linux-bb0d2b8ad29630b580ac903f989e704e23462357.tar.xz |
ovl: fix sgid on directory
When creating directory in workdir, the group/sgid inheritance from the
parent dir was omitted completely. Fix this by calling inode_init_owner()
on overlay inode and using the resulting uid/gid/mode to create the file.
Unfortunately the sgid bit can be stripped off due to umask, so need to
reset the mode in this case in workdir before moving the directory in
place.
Reported-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/dcache.c')
0 files changed, 0 insertions, 0 deletions