Skip to content

Commit

Permalink
fix for OTA update through script failure
Browse files Browse the repository at this point in the history
OTA update was failing due to sepolicy permission denial.
Added file context for vendor_boot_a|b partition.

Tests done: Run command ./update_device.py caas-ota-CR0000094.zip

Tracked-On: OAM-123102
Signed-off-by: Unnithan, Balakrishnan <[email protected]>
  • Loading branch information
bunnitha committed Sep 18, 2024
1 parent 6c751ba commit 83d3f9b
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
From a544b007a96f5797c759305883943ed915102c79 Mon Sep 17 00:00:00 2001
From: "Unnithan, Balakrishnan" <[email protected]>
Date: Wed, 18 Sep 2024 15:31:00 +0530
Subject: [PATCH] fix for OTA update through script failure

OTA update was failing due to sepolicy permission denial.
Added file context for vendor_boot_a|b partition.

Tests done: Run command ./update_device.py caas-ota-CR0000094.zip

Tracked-On: OAM-123102
Signed-off-by: Unnithan, Balakrishnan <[email protected]>
---
boot-arch/generic/file_contexts | 1 +
1 file changed, 1 insertion(+)

diff --git a/boot-arch/generic/file_contexts b/boot-arch/generic/file_contexts
index 4984f6c..1c70c45 100644
--- a/boot-arch/generic/file_contexts
+++ b/boot-arch/generic/file_contexts
@@ -2,6 +2,7 @@
# Block Devices
#
/dev/block/by-name/boot(_(a|b))? u:object_r:boot_block_device:s0
+/dev/block/by-name/vendor_boot(_(a|b))? u:object_r:boot_block_device:s0
/dev/block/by-name/bootloader(_(a|b))? u:object_r:boot_block_device:s0
/dev/block/by-name/multiboot(_(a|b))? u:object_r:boot_block_device:s0
/dev/block/by-name/system(_(a|b))? u:object_r:system_block_device:s0
--
2.25.1

0 comments on commit 83d3f9b

Please sign in to comment.