aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-07-23 16:31:28 -0700
committerColin Cross <ccross@android.com>2012-07-24 12:36:40 -0700
commit308bc52d33afa1b7b470e14fa8478045456cbb20 (patch)
treefc1231378891700bfccefe923e494edf6b57b128 /init
parent237c80bf4cbc8e8fa3936ec8382b247aa4e96be2 (diff)
downloadsystem_core-308bc52d33afa1b7b470e14fa8478045456cbb20.tar.gz
system_core-308bc52d33afa1b7b470e14fa8478045456cbb20.tar.bz2
system_core-308bc52d33afa1b7b470e14fa8478045456cbb20.zip
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
Diffstat (limited to 'init')
-rw-r--r--init/devices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/devices.c b/init/devices.c
index 125f9815..e081f90f 100644
--- a/init/devices.c
+++ b/init/devices.c
@@ -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)) {