summaryrefslogtreecommitdiff
path: root/sepolicy/system_control.te (plain)
blob: 35004556efdada690164f6233080b96433ec4d5d
1type system_control, domain;
2type system_control_exec, exec_type, vendor_file_type, file_type;
3
4init_daemon_domain(system_control)
5
6allow system_control vndbinder_device:chr_file { read write open ioctl };
7allow system_control vndservicemanager:binder { call transfer };
8#allow system_control default_android_vndservice:service_manager { add };
9
10allow system_control hwservicemanager:binder { call transfer };
11allow system_control { systemcontrol_hwservice hidl_base_hwservice }:hwservice_manager { add };
12
13allow system_control sysfs:file rw_file_perms;
14allow system_control sysfs_devices_system_cpu:file rw_file_perms;
15
16allow system_control system_control:netlink_kobject_uevent_socket { create setopt bind read shutdown };
17allow system_control self:capability { net_admin };
18
19allow system_control unify_device:chr_file { ioctl open read write };
20
21allow system_control vendor_shell_exec:file execute_no_trans;
22allow system_control vendor_file:file execute_no_trans;
23
24allow system_control sysfs_display:dir search;
25allow system_control sysfs_di:dir search;
26#unix_socket_connect(system_control, vold, vold);
27#unix_socket_connect(system_control, property, init);
28
29allow system_control mnt_vendor_file:dir { add_name write };
30allow system_control mnt_vendor_file:file { create open read write };
31allow system_control sysfs_amvdec:file { open read write };
32
33allow system_control mnt_vendor_file:dir { search read open remove_name rmdir };
34allow system_control mnt_vendor_file:file { setattr getattr lock unlink };
35
36# Property Service write
37#--------------------------------------------------------------------#
38# product_shipping_api_level=28 vendor/system cannot share prop
39#--------------------------------------------------------------------#
40get_prop(system_control, tv_config_prop)
41get_prop(system_control, bcmdl_prop)
42get_prop(system_control, safemode_prop)
43get_prop(system_control, mmc_prop)
44get_prop(system_control, device_logging_prop)
45get_prop(system_control, vendor_platform_prop)
46set_prop(system_control, vendor_platform_prop)
47get_prop(system_control, vendor_default_prop)
48
49set_prop(system_control, media_prop)
50get_prop(system_control, media_prop)
51get_prop(system_control, aml_display_prop)
52set_prop(system_control, uboot_prop)
53get_prop(system_control, uboot_prop)
54set_prop(system_control, tv_prop)
55get_prop(system_control, tv_prop)
56
57set_prop(system_control, vendor_persist_prop)
58get_prop(system_control, vendor_persist_prop)
59
60set_prop(system_control, netflix_prop)
61get_prop(system_control, netflix_prop)
62
63#get_prop(system_control, wifi_prop)
64set_prop(system_control, boottime_prop)
65get_prop(system_control, boottime_prop)
66
67set_prop(system_control, overlay_prop)
68get_prop(system_control, overlay_prop)
69set_prop(system_control, net_dns_prop)
70get_prop(system_control, net_dns_prop)
71set_prop(system_control, logpersistd_logging_prop)
72get_prop(system_control, logpersistd_logging_prop)
73set_prop(system_control, hwservicemanager_prop)
74get_prop(system_control, hwservicemanager_prop)
75set_prop(system_control, dumpstate_options_prop)
76#set_prop(system_control, bluetooth_prop)
77#get_prop(system_control, bluetooth_prop)
78
79set_prop(system_control, persistent_properties_ready_prop)
80get_prop(system_control, persistent_properties_ready_prop)
81
82get_prop(system_control, system_boot_reason_prop)
83# ctl interface
84set_prop(system_control, ctl_default_prop)
85set_prop(system_control, ctl_dhcp_pan_prop)
86set_prop(system_control, ctl_bugreport_prop)
87
88allow system_control block_device:dir r_dir_perms;
89
90allow system_control sysfs_audio_cap:file {open getattr read};
91allow system_control sysfs_audio:file {open getattr read};
92allow system_control sysfs_video:file rw_file_perms;
93allow system_control { sysfs_video sysfs_cec sysfs_am_vecm }:dir { search };
94allow system_control sysfs_cec:file rw_file_perms;
95
96#allow system_control app_data_file:file rw_file_perms;
97
98r_dir_file(system_control, domain)
99r_dir_file(system_control, binderservicedomain)
100r_dir_file(system_control, appdomain)
101r_dir_file(system_control, platform_app)
102
103
104allow system_control appdomain:dir { getattr search };
105allow system_control appdomain:file { r_file_perms };
106allow system_control platform_app:dir { search };
107
108allow system_control param_tv_file:dir { search read write open add_name remove_name rmdir create };
109allow system_control param_tv_file:file { create open read write setattr getattr lock unlink };
110
111#allow system_control shell_exec:file { execute_no_trans execute open read getattr };
112allow system_control sysfs_digital_codec:file { read write };
113#allow system_control system_file:file execute_no_trans;
114
115allow system_control { env_device cri_block_device }:blk_file { getattr read open write };
116allow system_control self:capability sys_nice;
117
118allow system_control system_app:binder { call };
119allow system_control droidvold_hwservice:hwservice_manager { find };
120allow system_control droidvold:binder { call };
121
122
123allow system_control { video_device amvecm_device }:chr_file { read write open ioctl getattr };
124allow system_control di0_device:chr_file { read write open ioctl };
125allow system_control param_tv_file:dir { write search add_name create };
126allow system_control param_tv_file:file { create read write open getattr ioctl};
127allow system_control sysfs_amhdmitx:dir search;
128allow system_control sysfs_amvdec:file { create open read write getattr};
129allow system_control sysfs_xbmc:file { read open };
130
131allow system_control vendor_configs_file:file { ioctl lock };
132allow system_control sysfs_display:lnk_file { read write open getattr };
133allow system_control { sysfs_display sysfs_am_vecm sysfs_display sysfs_amhdmitx }:file { read write open getattr };
134
135allow system_control sysfs_unifykey:dir { search };
136allow system_control sysfs_unifykey:file { read write open };
137allow system_control unlabeled:dir search;
138allow system_control sysfs_mpgpu:file rw_file_perms ;
139allow system_control hdmirx0_device:chr_file { read write open ioctl getattr };
140
141allow system_control exported_system_prop:file { read } ;
142get_prop(system_control, exported_system_prop);
143
144allow system_control tvserver:binder { call transfer };
145allow system_control tvserver_hwservice:hwservice_manager find;
146allow system_control sysfs_leds:dir search;
147
148allow system_control hal_keymaster_hwservice:hwservice_manager { find };
149allow system_control hal_keymaster_default:binder { call };
150allow system_control priv_app:binder { call };
151allow system_control hdmicecd:binder { call transfer };
152allow system_control aml_core_app:binder { call transfer };
153allow system_control hal_graphics_composer_default:binder { call transfer };
154allow system_control platform_app:binder { call transfer };
155allow system_control untrusted_app:binder { call transfer };