From 2e22a8880c273edb183c0e8c0b841290ba97bde1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 17 May 2023 17:26:38 -0700 Subject: [PATCH] microdroid: Add device-mapper capabilities to ueventd. Bug: 286011429 Test: treehugger (cherry picked from https://android-review.googlesource.com/q/commit:40427e7f1349491a9947ff4e520df98a826da4de) Merged-In: I87d7836ea6e875712c0a01b52a22c90745d53a2a Change-Id: I4aa290483e52ad7429424ba8fbe68390f2100913 --- microdroid/init.rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/microdroid/init.rc b/microdroid/init.rc index 29f89702..22988215 100644 --- a/microdroid/init.rc +++ b/microdroid/init.rc @@ -146,10 +146,12 @@ service apexd-vm /system/bin/apexd --vm capabilities CHOWN DAC_OVERRIDE DAC_READ_SEARCH FOWNER SYS_ADMIN service ueventd /system/bin/ueventd + user root + group root class core critical seclabel u:r:ueventd:s0 - capabilities CHOWN DAC_OVERRIDE DAC_READ_SEARCH FOWNER FSETID MKNOD NET_ADMIN SETGID SETUID SYS_MODULE SYS_RAWIO + capabilities CHOWN DAC_OVERRIDE DAC_READ_SEARCH FOWNER FSETID MKNOD NET_ADMIN SETGID SETUID SYS_MODULE SYS_RAWIO SYS_ADMIN service console /system/bin/sh class core