Freddy Hsin b069f1aff7 [ALPS04794271] bootctl: add misc access permission for bootctrl
add misc access permission for bootctrl

MTK-Commit-Id: 5c7ec0779ccca3fd9f9cc516cdae1b003fed2112

Change-Id: Ia8327de54f3e8e429506f2d58309cf46a1a0513a
CR-Id: ALPS04794271
Feature: [Android Default] SIU (SD Image Update)
2020-01-18 10:20:50 +08:00

16 lines
913 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 sysfs_boot_type:file { 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 rw_file_perms;
allowxperm hal_bootctl_default bootdevice_block_device:blk_file ioctl MMC_IOCTLCMD;
allowxperm hal_bootctl_default bootdevice_block_device:blk_file ioctl UFS_IOCTLCMD;
allow hal_bootctl_default proc_cmdline:file r_file_perms;
allow hal_bootctl_default sysfs_boot_type:file r_file_perms;
allow hal_bootctl_default self:capability sys_rawio;
allow hal_bootctl_default misc_block_device:blk_file rw_file_perms;