From ec7336ca7fae346457c68344a6eaa3157a124e41 Mon Sep 17 00:00:00 2001 From: Jade Guo Date: Thu, 19 Dec 2024 12:51:16 +0000 Subject: [PATCH] Ensure correct SELinux context for /data/vendor/ota Added a command to init.rc to recursively restore the SELinux context for /data/vendor/ota and its contents, even across filesystem boundaries. Tracked-On: OAM-128450 Signed-off-by: Jade Guo --- groups/ota-coordinator/true/init.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/groups/ota-coordinator/true/init.rc b/groups/ota-coordinator/true/init.rc index 986c33c94..aae7ecc60 100644 --- a/groups/ota-coordinator/true/init.rc +++ b/groups/ota-coordinator/true/init.rc @@ -9,4 +9,5 @@ service ota_coordinator /vendor/bin/ota_coordinator on boot mkdir /data/vendor/ota 660 system system mount virtiofs myfs /data/vendor/ota + restorecon --recursive --cross-filesystems /data/vendor/ota start ota_coordinator