summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2020-12-08 18:53:44 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-12-08 18:53:44 +0000
commitbca7bfcc54535e71bb965f378b7bc78aea4ae7b1 (patch)
tree6fa1b6261fedf1e098bb768df701bc7b41a17eab
parent77692aeea28a0781c0c918673ece565c28f15643 (diff)
parente6094789b42d5fb253813177a06288961c371c9c (diff)
downloadcore-bca7bfcc54535e71bb965f378b7bc78aea4ae7b1.tar.gz
Merge "ueventd: Add support for updating permissions on bind"
-rw-r--r--init/devices.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/init/devices.cpp b/init/devices.cpp
index 5888c063f..3513bc9ca 100644
--- a/init/devices.cpp
+++ b/init/devices.cpp
@@ -461,9 +461,10 @@ void DeviceHandler::HandleAshmemUevent(const Uevent& uevent) {
}
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;