OSDN Git Service

authz: add QAuthZ object as an authorization base class
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 21 Oct 2015 12:16:21 +0000 (13:16 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 26 Feb 2019 15:25:58 +0000 (15:25 +0000)
commit5b76dd132c5346f335a85161dddaae022b47ccf9
treea70db32658b4db23007e0fa19e3e3b3992ba45cf
parent47287c27d0c367a89f7b2851e23a7f8b2d499dd6
authz: add QAuthZ object as an authorization base class

The current qemu_acl module provides a simple access control list
facility inside QEMU, which is used via a set of monitor commands
acl_show, acl_policy, acl_add, acl_remove & acl_reset.

Note there is no ability to create ACLs - the network services (eg VNC
server) were expected to create ACLs that they want to check.

There is also no way to define ACLs on the command line, nor potentially
integrate with external authorization systems like polkit, pam, ldap
lookup, etc.

The QAuthZ object defines a minimal abstract QOM class that can be
subclassed for creating different authorization providers.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
MAINTAINERS
Makefile
Makefile.objs
Makefile.target
authz/Makefile.objs [new file with mode: 0644]
authz/base.c [new file with mode: 0644]
authz/trace-events [new file with mode: 0644]
include/authz/base.h [new file with mode: 0644]