diff options
author | Vivek Goyal <vgoyal@redhat.com> | 2018-08-15 17:05:29 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2020-01-23 16:41:36 +0000 |
commit | 929cfb7a9a1b101cdfc9ac19807ecab4c81a13e4 (patch) | |
tree | d5dd3f260708c379136cc01593f8fd5b23226505 /tcg | |
parent | bad7d2c3ad1af9344df035aedaf8e0967a543070 (diff) |
virtiofsd: passthrough_ll: create new files in caller's context
We need to create files in the caller's context. Otherwise after
creating a file, the caller might not be able to do file operations on
that file.
Changed effective uid/gid to caller's uid/gid, create file and then
switch back to uid/gid 0.
Use syscall(setresuid, ...) otherwise glibc does some magic to change EUID
in all threads, which is not what we want.
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'tcg')
0 files changed, 0 insertions, 0 deletions