Revert "Move hal_bootctl rules to hal_bootctl_default"
This reverts commit dfe3f48c6c188c0436a186a6ea88c23c341881b6.
Bug: 69664758
Test: adb sideload an OTA on Marlin
Change-Id: I2d9f2b3d0875f086d222043ce620abc59fd30720
(cherry picked from commit eac1cd4f6dfcebc7774b5babbe415f9ee48646fa)
diff --git a/sepolicy/hal_bootctl_default.te b/sepolicy/hal_bootctl.te
similarity index 66%
rename from sepolicy/hal_bootctl_default.te
rename to sepolicy/hal_bootctl.te
index 6fc1c8d..9fc0ba0 100644
--- a/sepolicy/hal_bootctl_default.te
+++ b/sepolicy/hal_bootctl.te
@@ -3,10 +3,10 @@
# Getting and setting GPT attributes for the bootloader iterates over all the
# partition names in the block_device directory /dev/block/.../by-name
-allow hal_bootctl_default block_device:dir r_dir_perms;
+allow hal_bootctl block_device:dir r_dir_perms;
# Get attributes on all the A/B partitions.
-allow hal_bootctl_default {
+allow hal_bootctl {
custom_ab_block_device
xbl_block_device
boot_block_device
@@ -16,17 +16,17 @@
}:blk_file { getattr };
# Edit the attributes stored in the GPT.
-allow hal_bootctl_default gpt_block_device:blk_file rw_file_perms;
+allow hal_bootctl gpt_block_device:blk_file rw_file_perms;
# Access /dev/sgN devices (generic SCSI) to write the
# A/B slot selection for the XBL partition. Allow also to issue a
# UFS_IOCTL_QUERY ioctl.
-allow hal_bootctl_default sg_device:chr_file rw_file_perms;
-allow hal_bootctl_default self:capability sys_admin;
+allow hal_bootctl sg_device:chr_file rw_file_perms;
+allow hal_bootctl self:capability sys_admin;
# Read the sysfs to lookup what /dev/sgN device
# corresponds to the XBL partitions.
-allow hal_bootctl_default sysfs:dir r_dir_perms;
+allow hal_bootctl sysfs:dir r_dir_perms;
# Write to the XBL devices.
-allow hal_bootctl_default xbl_block_device:blk_file rw_file_perms;
+allow hal_bootctl xbl_block_device:blk_file rw_file_perms;