summaryrefslogtreecommitdiff
path: root/sepolicy/bullhead-sh.te
blob: d18ee500bc44e4d7480604a37aa5c5470e943584 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
type bullhead-sh, domain, domain_deprecated;
type bullhead-sh_exec, exec_type, file_type;

# Started by init
init_daemon_domain(bullhead-sh)

# Access to /data/misc/radio/*
allow bullhead-sh radio_data_file:file create_file_perms;
allow bullhead-sh radio_data_file:dir create_dir_perms;

# Chwon /data/misc/radio/modem_config
allow bullhead-sh self:capability chown;

# Copy /firmware/image/modem_pr/mcfg/configs/ to /data/misc/radio/*
allow bullhead-sh firmware_file:file r_file_perms;
allow bullhead-sh firmware_file:dir r_dir_perms;

allow bullhead-sh shell_exec:file r_file_perms;

# execute toybox/toolbox
allow bullhead-sh toolbox_exec:file rx_file_perms;