mirror of
https://github.com/systemd/systemd
synced 2024-09-06 08:46:19 +00:00
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.
This commit is contained in:
parent
4dffec1459
commit
2ec62d8e84
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue