virtiofsd: cap-ng helpers
commit2405f3c0d19eb4d516a88aa4e5c54e5f9c6bbea3
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Tue, 3 Dec 2019 12:23:44 +0000 (3 12:23 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 23 Jan 2020 16:41:37 +0000 (23 16:41 +0000)
treec9effc0c7a1f5186ff07df3ea0e25c10eb9f6e26
parentf779bc5265e7e7abb13a03d4bfbc74151afc15c2
virtiofsd: cap-ng helpers

libcap-ng reads /proc during capng_get_caps_process, and virtiofsd's
sandboxing doesn't have /proc mounted; thus we have to do the
caps read before we sandbox it and save/restore the state.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Makefile
tools/virtiofsd/passthrough_ll.c