Merge "ueventd: Add support for updating permissions on bind" am: bca7bfcc54 am: c6544c9246

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1511048

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7a3117112a572d6121a6630819518f3e3211676f
This commit is contained in:
Treehugger Robot 2020-12-08 19:59:10 +00:00 committed by Automerger Merge Worker
commit 37476f59d2

View file

@ -461,9 +461,10 @@ void DeviceHandler::HandleAshmemUevent(const Uevent& uevent) {
} }
void DeviceHandler::HandleUevent(const Uevent& uevent) { void DeviceHandler::HandleUevent(const Uevent& uevent) {
if (uevent.action == "add" || uevent.action == "change" || uevent.action == "online") { if (uevent.action == "add" || uevent.action == "change" ||
FixupSysPermissions(uevent.path, uevent.subsystem); uevent.action == "bind" || uevent.action == "online") {
} FixupSysPermissions(uevent.path, uevent.subsystem);
}
// if it's not a /dev device, nothing to do // if it's not a /dev device, nothing to do
if (uevent.major < 0 || uevent.minor < 0) return; if (uevent.major < 0 || uevent.minor < 0) return;