summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWaLyong Cho <walyong.cho@samsung.com>2014-10-24 13:51:09 +0900
committerLennart Poettering <lennart@poettering.net>2014-10-24 13:56:24 +0200
commit2ec62d8e846a8d15f6e3002690da70500168ff46 (patch)
treef3e4601393a090ec127acd8082fdda49e0fc1b8f /src
parent4dffec1459f50ac9f8f67ccfcb79836b4ed5a50e (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/udev/udev-node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c
index 4ac6f71490..030e459198 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);
}