summaryrefslogtreecommitdiff
path: root/plat_private/boot_logo_updater.te
blob: 2370498b8c0bf32278bbb41951a329f287a008e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# ==============================================
# Policy File of /system/binboot_logo_updater Executable File

# New added for move to /system
typeattribute boot_logo_updater coredomain;
type boot_logo_updater_exec, system_file_type, exec_type, file_type;

# ==============================================
# MTK Policy Rule
# ==============================================

init_daemon_domain(boot_logo_updater)

# Date : WK14.32
# Operation : Migration
# Puration : set boot reason
set_prop(boot_logo_updater, system_prop)

allow boot_logo_updater graphics_device:chr_file rw_file_perms;

# To access directory /dev/block/mmcblk0 or /dev/block/sdc
allow boot_logo_updater block_device:dir search;
allow boot_logo_updater graphics_device:dir search;
# to access file at  /dev/block/mtd
allow boot_logo_updater mtd_device:chr_file r_file_perms;
allow boot_logo_updater mtd_device:dir search;
#To access the file at   /dev/kmsg
allow boot_logo_updater kmsg_device:chr_file w_file_perms;
#To the access /fstab mount point
allow boot_logo_updater rootfs:file r_file_perms;
#To access linux filesystem
allow boot_logo_updater sysfs:dir read;
# sanity fail for ALPS03604686:
# for path="/sys/firmware/devicetree/base/firmware/android/fstab" andfor name = "cmdline" and "mtdblock14"
allow boot_logo_updater mtd_device:blk_file read;
allow boot_logo_updater sysfs:dir open;
allow boot_logo_updater mtd_device:blk_file open;