summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2016-07-29 12:05:23 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2016-07-29 12:05:23 +0200
commitbb0d2b8ad29630b580ac903f989e704e23462357 (patch)
tree906ff6b0ba636472c66510c5d1776c40bc6e7755 /lib
parent9c630ebefeeee4363ffd29f2f9b18eddafc6479c (diff)
downloadlinux-stable-bb0d2b8ad29630b580ac903f989e704e23462357.tar.gz
linux-stable-bb0d2b8ad29630b580ac903f989e704e23462357.tar.bz2
linux-stable-bb0d2b8ad29630b580ac903f989e704e23462357.zip
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 'lib')
0 files changed, 0 insertions, 0 deletions