mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09: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
@@ -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