[systemd-devel] [PATCH] export SELinuxContext on the bus as a structure

Lennart Poettering lennart at poettering.net
Mon Feb 17 07:57:29 PST 2014


On Fri, 14.02.14 17:13, Michael Scherer (misc at zarb.org) wrote:

> This permit to hide the logic of prefixing by '-' from the consumer
> of the DBus API, by presenting a boolean and a string rather than just
> a raw string, with specific magic value. See
> http://lists.freedesktop.org/archives/systemd-devel/2014-February/016918.html

I have now committed a different patch that implements both sides of the
medal: parses the label into a string + bool and then exposes it like
that. We really should normalize all input when storing it internally as
well when exposing it on the bus.

I only did superficial testing on this, would be thankful for further testing!

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list