Merge "ueventd: Add support for updating permissions on bind" am: bca7bfcc54 am: c6544c9246 am: 37476f59d2
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1511048
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I10d500b420a5456b2f56474eea442b2f1874e791
diff --git a/init/devices.cpp b/init/devices.cpp
index 5888c06..3513bc9 100644
--- a/init/devices.cpp
+++ b/init/devices.cpp
@@ -461,9 +461,10 @@
}
void DeviceHandler::HandleUevent(const Uevent& uevent) {
- if (uevent.action == "add" || uevent.action == "change" || uevent.action == "online") {
- FixupSysPermissions(uevent.path, uevent.subsystem);
- }
+ if (uevent.action == "add" || uevent.action == "change" ||
+ uevent.action == "bind" || uevent.action == "online") {
+ FixupSysPermissions(uevent.path, uevent.subsystem);
+ }
// if it's not a /dev device, nothing to do
if (uevent.major < 0 || uevent.minor < 0) return;