[systemd-devel] [PATCH 5/7] libsystemd-bus: add sd_bus_get_selinux_ctx() and sd_bus_get_audit_session_data()

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Mon Nov 18 18:53:18 PST 2013


On Fri, Nov 15, 2013 at 07:32:21PM +0100, Daniel Mack wrote:
> Implementations for both org.freedesktop.DBus and kdbus are available
> ---
>  src/libsystemd-bus/bus-control.c      | 116 ++++++++++++++++++++++++++++++++++
>  src/libsystemd-bus/libsystemd-bus.sym |   2 +
>  src/systemd/sd-bus.h                  |   2 +
>  3 files changed, 120 insertions(+)
> 
> diff --git a/src/libsystemd-bus/bus-control.c b/src/libsystemd-bus/bus-control.c
> index 28adebd..55912c8 100644
> --- a/src/libsystemd-bus/bus-control.c
> +++ b/src/libsystemd-bus/bus-control.c
> @@ -434,6 +434,122 @@ _public_ int sd_bus_get_owner_pid(sd_bus *bus, const char *name, pid_t *pid) {
>          return 0;
>  }
>  
> +_public_ int sd_bus_get_selinux_ctx(sd_bus *bus, const char *name, const void **ctx, size_t *sz) {

Shouldn't this be security_context_t **ctx or some other type?
And similar for sd_bus_get_audit_session_data?

Zbyszek


More information about the systemd-devel mailing list