Skip to content

Commit bca7bfc

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "ueventd: Add support for updating permissions on bind"
2 parents 77692ae + e609478 commit bca7bfc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

init/devices.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,10 @@ void DeviceHandler::HandleAshmemUevent(const Uevent& uevent) {
461461
}
462462

463463
void DeviceHandler::HandleUevent(const Uevent& uevent) {
464-
if (uevent.action == "add" || uevent.action == "change" || uevent.action == "online") {
465-
FixupSysPermissions(uevent.path, uevent.subsystem);
466-
}
464+
if (uevent.action == "add" || uevent.action == "change" ||
465+
uevent.action == "bind" || uevent.action == "online") {
466+
FixupSysPermissions(uevent.path, uevent.subsystem);
467+
}
467468

468469
// if it's not a /dev device, nothing to do
469470
if (uevent.major < 0 || uevent.minor < 0) return;

0 commit comments

Comments
 (0)