mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-13 13:41:27 +00:00
[PATCH] apply default permissions only for devices that will need it
This commit is contained in:
committed by
Greg KH
parent
16eb35d16e
commit
1bbff4f035
+5
-3
@@ -89,9 +89,11 @@ int udev_init_device(struct udevice *udev, const char* devpath, const char *subs
|
||||
}
|
||||
}
|
||||
|
||||
udev->mode = 0660;
|
||||
strcpy(udev->owner, "root");
|
||||
strcpy(udev->group, "root");
|
||||
if (udev->type == DEV_BLOCK || udev->type == DEV_CLASS) {
|
||||
udev->mode = 0660;
|
||||
strcpy(udev->owner, "root");
|
||||
strcpy(udev->group, "root");
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user