[systemd-commits] src/udev
Lennart Poettering
lennart at kemper.freedesktop.org
Fri Oct 24 04:56:37 PDT 2014
src/udev/udev-node.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2ec62d8e846a8d15f6e3002690da70500168ff46
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Fri Oct 24 13:51:09 2014 +0900
udev: do NOT re-label smack
If selinux is disabled and smack is only enabled, smack label is
relable-ed by label_fix. To avoid, make only be labeled for selinux.
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c
index 4ac6f71..030e459 100644
--- a/src/udev/udev-node.c
+++ b/src/udev/udev-node.c
@@ -323,7 +323,7 @@ static int node_permissions_apply(struct udev_device *dev, bool apply,
/* set the defaults */
if (!selinux)
- label_fix(devnode, true, false);
+ mac_selinux_fix(devnode, true, false);
if (!smack)
mac_smack_apply(devnode, NULL);
}
More information about the systemd-commits
mailing list