android_device_mediatek_sep.../non_plat/hal_bootctl_default.te
Seiya Wang bfdf1302fa [ALPS04064256] tb8127p4_bsp_ab: fixed cannot switch boot partition
Add selinux rule for bootctl

MTK-Commit-Id: a0a417ebbfcf4db7f65260004916633f72dd8f36

Change-Id: Id02178fb27c46c9b9ecdceaa6c83f3dac0e791e5
CR-Id: ALPS04064256
Feature: A/B System Updates
2020-01-18 10:06:28 +08:00

13 lines
588 B
Plaintext

# Add for bootctl
#============= hal_bootctl_default ==============
allow hal_bootctl_default para_block_device:blk_file { read open write};
allow hal_bootctl_default rootfs:file { read getattr open };
allow hal_bootctl_default sysfs:dir { read open };
allow hal_bootctl_default block_device:dir search;
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 proc_cmdline:file r_file_perms;
userdebug_or_eng(`
allow hal_bootctl_default self:capability sys_rawio;
')