mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-03 15:30:38 +00:00
udev: static_node - don't touch permissions uneccessarily
Don't set default permissions if only TAGS were specified in a rule.
This commit is contained in:
@@ -2586,6 +2586,10 @@ int udev_rules_apply_static_dev_perms(struct udev_rules *rules)
|
||||
}
|
||||
}
|
||||
|
||||
/* don't touch the permissions if only the tags were set */
|
||||
if (mode == 0 && uid == 0 && gid == 0)
|
||||
goto next;
|
||||
|
||||
if (mode == 0) {
|
||||
if (gid > 0)
|
||||
mode = 0660;
|
||||
|
||||
Reference in New Issue
Block a user