selinux: make sure we do not try to print missing fields
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Oct 2014 01:31:29 +0000 (21:31 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Oct 2014 02:30:43 +0000 (22:30 -0400)
commitdec23413ecc90d4a547aa41f02af0482b4513495
tree7a910ad2e9a8fa182e3c2f15e75224f3ac1b4bf2
parent3769415e6573da64fb80e31f4bb3f850cd99031e
selinux: make sure we do not try to print missing fields

UID or GID of 0 is valid, so we cannot use that to distinguish whether
calls to sd_bus_creds_get_* succeeded, and the return value from the
function is the only way to know about missing fields. Print "n/a" if
the fields are missing.

CID #1238779
src/core/selinux-access.c