diff options
author | Fabricio Voznika <fvoznika@google.com> | 2021-01-21 15:38:22 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-01-21 15:47:23 -0800 |
commit | 7bf656f4c635e4acdc0a61523220dfc9a1f3d1ba (patch) | |
tree | 26ac28ebad65eebacdb081bc4f317f99307a80f0 /runsc/flag | |
parent | 89df5a681c004a3772facc08de73d930636227be (diff) |
Fix ownership change logic
Previously fsgofer was skipping chown call if the uid and gid
were the same as the current user/group. However, when setgid
is set, the group may not be the same as the caller. Instead,
compare the actual uid/gid of the file after it has been
created and change ownership only if needed.
Updates #180
PiperOrigin-RevId: 353118733
Diffstat (limited to 'runsc/flag')
0 files changed, 0 insertions, 0 deletions