Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 308bc52d authored by Colin Cross's avatar Colin Cross
Browse files

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
parent 237c80bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {