libvirt/include/libvirt
Daniel P. Berrangé 305cdc37f0 api: introduce virConnectSetIdentity for passing uid, gid, selinux info
When using the fine grained access control mechanism for APIs, when a
client connects to libvirtd, the latter will fetch the uid, gid, selinux
info of the remote client on the UNIX domain socket. This is then used
as the identity when checking ACLs.

With the new split daemons things are a bit more complicated. The user
can connect to virtproxyd, which in turn connects to virtqemud. When
virtqemud requests the identity over the UNIX domain socket, it will
get the identity that virtproxyd is running as, not the identity of
the real end user/application.

virproxyd knows what the real identity is, and needs to be able to
forward this information to virtqemud. The virConnectSetIdentity API
provides a mechanism for doing this. Obviously virtqemud should not
accept such identity overrides from any client, it must only honour it
from a trusted client, aka one running as the same uid/gid as itself.

The typed parameters exposed in the API are the same as those currently
supported by the internal virIdentity class, with a few small name
changes.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2019-09-16 11:25:01 +01:00
..
Makefile.am admin: enable both admin API functionality and tarball distribution 2016-06-26 00:21:06 +02:00
libvirt-admin.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-common.h.in Remove all Author(s): lines from source file headers 2018-12-13 16:08:38 +00:00
libvirt-domain-checkpoint.h backup: Introduce virDomainCheckpoint APIs 2019-07-26 16:48:58 -05:00
libvirt-domain-snapshot.h snapshot: Add VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE flag 2019-07-10 17:34:58 -05:00
libvirt-domain.h lib: add virDomainGetGuestInfo() 2019-08-26 17:27:40 +02:00
libvirt-event.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-host.h api: introduce virConnectSetIdentity for passing uid, gid, selinux info 2019-09-16 11:25:01 +01:00
libvirt-interface.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-lxc.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-network.h network: add virNetworkPortRef API 2019-06-19 11:21:38 +01:00
libvirt-nodedev.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-nwfilter.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-qemu.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt-secret.h secret: Add support for usage type vTPM, extend schema and test case 2019-07-26 09:59:27 +01:00
libvirt-storage.h storage: Add iscsi-direct pool list type flag 2019-07-13 17:40:09 +02:00
libvirt-stream.h Enforce a standard header file guard symbol name 2018-12-14 10:47:13 +00:00
libvirt.h backup: Introduce virDomainCheckpoint APIs 2019-07-26 16:48:58 -05:00
virterror.h tpm: Parse the capabilities supported by swtpm and swtpm_setup 2019-07-26 10:30:46 +01:00