summaryrefslogtreecommitdiff
path: root/src/udev/udev-node.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-10-09 17:31:00 +0200
committerKay Sievers <kay@vrfy.org>2013-10-09 17:31:41 +0200
commit463b5dbb0d10227230468ee3adc3b50fce7d0707 (patch)
tree048fe40e302b9dba74d60372cf336ddb8b01f6af /src/udev/udev-node.c
parent35bffce819222e18dd363027d7a6ad4fc245b05f (diff)
udev: add SECLABEL{selinux}= support
Diffstat (limited to 'src/udev/udev-node.c')
-rw-r--r--src/udev/udev-node.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c
index 74c19539ab..187e24e5b6 100644
--- a/src/udev/udev-node.c
+++ b/src/udev/udev-node.c
@@ -305,8 +305,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")) {