From a71faae86f3ff23c4400f0b1d0452b2d6d7fbe10 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 14 Jul 2023 08:57:30 -0700 Subject: [PATCH] Allow processes in the "system" group to read /metadata/ota. lpdumpd runs as "system", not "root". Adjust the DAC permissions of /metadata/ota so it can call SnapshotManager::Dump. Bug: 291083311 Test: lpdump Change-Id: I97fd7eb2055cf6d31fd42f1021e2f99edbdb838a --- rootdir/init.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootdir/init.rc b/rootdir/init.rc index 4f3959f7c..be03489a6 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -604,8 +604,8 @@ on post-fs chmod 0700 /metadata/vold mkdir /metadata/password_slots 0771 root system mkdir /metadata/bootstat 0750 system log - mkdir /metadata/ota 0700 root system - mkdir /metadata/ota/snapshots 0700 root system + mkdir /metadata/ota 0750 root system + mkdir /metadata/ota/snapshots 0750 root system mkdir /metadata/userspacereboot 0770 root system mkdir /metadata/watchdog 0770 root system