diff options
author | Miklos Szeredi <[email protected]> | 2016-07-29 12:05:23 +0200 |
---|---|---|
committer | Miklos Szeredi <[email protected]> | 2016-07-29 12:05:23 +0200 |
commit | bb0d2b8ad29630b580ac903f989e704e23462357 (patch) | |
tree | 906ff6b0ba636472c66510c5d1776c40bc6e7755 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9c630ebefeeee4363ffd29f2f9b18eddafc6479c (diff) |
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 <[email protected]>
Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions