]> git.proxmox.com Git - mirror_qemu.git/commit - tools/virtiofsd/passthrough_ll.c
virtiofsd: Drop CAP_FSETID if client asked for it
authorVivek Goyal <vgoyal@redhat.com>
Tue, 13 Aug 2019 19:29:44 +0000 (15:29 -0400)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 23 Jan 2020 16:41:37 +0000 (16:41 +0000)
commitee88465224b3aed2596049caa28f86cbe0d5a3d0
treeb2a73f77374a4c2138753d21917b09c936ea97cd
parent2405f3c0d19eb4d516a88aa4e5c54e5f9c6bbea3
virtiofsd: Drop CAP_FSETID if client asked for it

If client requested killing setuid/setgid bits on file being written, drop
CAP_FSETID capability so that setuid/setgid bits are cleared upon write
automatically.

pjdfstest chown/12.t needs this.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
  dgilbert: reworked for libcap-ng
Reviewed-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/passthrough_ll.c