[ALPS04147660] Add selinux policy for bootctrl

Add policy for read  boot_type for bootctrl

MTK-Commit-Id: 0665caa10660ea2b630fb3299e0c8ce9360d6d63

Change-Id: Ibe33047a14d32473d054c9e7c239947984748a00
CR-Id: ALPS04147660
Feature: A/B System Updates
This commit is contained in:
min.he 2020-01-18 10:07:44 +08:00 committed by Min He
parent 700f8ee586
commit 463a35aa13

View File

@ -7,6 +7,7 @@ allow hal_bootctl_default block_device:dir search;
allow hal_bootctl_default misc_sd_device:chr_file rw_file_perms; allow hal_bootctl_default misc_sd_device:chr_file rw_file_perms;
allow hal_bootctl_default bootdevice_block_device:blk_file { read write ioctl open }; allow hal_bootctl_default bootdevice_block_device:blk_file { read write ioctl open };
allow hal_bootctl_default proc_cmdline:file r_file_perms; allow hal_bootctl_default proc_cmdline:file r_file_perms;
allow hal_bootctl_default sysfs_boot_type:file r_file_perms;
userdebug_or_eng(` userdebug_or_eng(`
allow hal_bootctl_default self:capability sys_rawio; allow hal_bootctl_default self:capability sys_rawio;
') ')