diff options
author | Kay Sievers <kay@vrfy.org> | 2014-01-09 18:55:21 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-01-09 18:55:21 -0500 |
commit | 97b903d94eca5cc6cf17262f91e43227998d3301 (patch) | |
tree | 9b82b6a8fb5fd9170f2e92506f3d1c6f3e5a058b /src/udev/udev-node.c | |
parent | ed55ef29406d173fb838211c31058e7941c09d00 (diff) |
udev: add SECLABEL{selinux}= support
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udev-node.c')
-rw-r--r-- | src/udev/udev-node.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c index e09c94dedb..76644ccdba 100644 --- a/src/udev/udev-node.c +++ b/src/udev/udev-node.c @@ -306,8 +306,10 @@ static int node_permissions_apply(struct udev_device *dev, bool apply, if (streq(name, "selinux")) { selinux = true; - /* FIXME: hook up libselinux */ - log_error("SECLABEL: failed to set selinux label '%s'", label); + if (label_apply(devnode, label) < 0) + log_error("SECLABEL: failed to set SELinux label '%s'", label); + else + log_debug("SECLABEL: set SELinux label '%s'", label); #ifdef HAVE_SMACK } else if (streq(name, "smack")) { |