ueventd: fixup /sys permissions on change uevents
Change uevents may be triggered after new files are created on a device in /sys, run the sys permissions fixup when they occur. Change-Id: Iec2725c9f8a032e5124190444edaf189a766b0b2
This commit is contained in:
parent
237c80bf4c
commit
308bc52d33
|
@ -660,7 +660,7 @@ static void handle_generic_device_event(struct uevent *uevent)
|
|||
|
||||
static void handle_device_event(struct uevent *uevent)
|
||||
{
|
||||
if (!strcmp(uevent->action,"add"))
|
||||
if (!strcmp(uevent->action,"add") || !strcmp(uevent->action, "change"))
|
||||
fixup_sys_perms(uevent->path);
|
||||
|
||||
if (!strncmp(uevent->subsystem, "block", 5)) {
|
||||
|
|
Loading…
Reference in New Issue