blob: baf5f56717d621d0ea1de0b30b5110fc42945535 [file] [log] [blame]
repo sync78ae7c82013-05-14 12:50:09 -07001# This file contains autogenerated policy based on
2# denials seen in the wild.
3#
4# As a general rule, you should not add policy to
5# this file. You SHOULD treat this policy very
6# skeptically- while it does preserve compatibility,
7# it is also extremely overbroad.
8#
9# Over time this list should trend to size 0. Your
10# assistance in bringing it to 0 is highly appreciated.
11
12#============= adbd ==============
13allow adbd app_data_file:dir { write add_name };
14allow adbd app_data_file:file { write create open setattr };
15allow adbd kernel:process setsched;
16allow adbd proc:file write;
17allow adbd self:capability setpcap;
18
19#============= debuggerd ==============
20allow debuggerd system:unix_stream_socket connectto;
21allow debuggerd system_data_file:sock_file write;
22
23#============= dhcp ==============
24allow dhcp system_data_file:file open;
25allow dhcp unlabeled:file create;
26
27#============= drmserver ==============
28allow drmserver init:unix_stream_socket { read write };
29
30#============= init ==============
31allow init node:rawip_socket node_bind;
32
33#============= init_shell ==============
34allow init_shell init:fifo_file write;
35allow init_shell init:netlink_route_socket { read write };
36allow init_shell init:netlink_socket { read write };
37allow init_shell init:unix_stream_socket { read write };
38allow init_shell self:netlink_route_socket { write getattr setopt bind create nlmsg_read };
39
40#============= installd ==============
41allow installd download_file:dir { read search open getattr };
42
43#============= keystore ==============
44allow keystore init:unix_stream_socket { read write };
45
46#============= media_app ==============
47allow media_app system_data_file:file append;
48
49#============= mediaserver ==============
50allow mediaserver device:chr_file { read write ioctl open };
51allow mediaserver init:unix_dgram_socket sendto;
52allow mediaserver init:unix_stream_socket { read write };
53allow mediaserver system_data_file:file { write open };
54allow mediaserver system_data_file:sock_file write;
55
56#============= nfc ==============
57allow nfc device:chr_file { read write open };
58allow nfc init:unix_stream_socket { read write };
59#allow nfc system_data_file:dir { write remove_name add_name };
60#allow nfc system_data_file:file { write create unlink append };
61allow nfc unlabeled:file { read write open };
62
63#============= ping ==============
64allow ping adbd:process sigchld;
65
66#============= platform_app ==============
67allow platform_app device:chr_file { read write ioctl };
68allow platform_app init:binder { transfer call };
69allow platform_app init:unix_stream_socket { read write };
70#allow platform_app system_data_file:file append;
71allow platform_app unlabeled:file { read getattr open };
72
73#============= radio ==============
74allow radio init:binder call;
75allow radio init:unix_stream_socket { read write };
76allow radio system_data_file:file append;
77
78#============= release_app ==============
79allow release_app system_data_file:file append;
80allow release_app unlabeled:lnk_file read;
81
82#============= sdcardd ==============
83allow sdcardd unlabeled:dir { read open };
84
85#============= shared_app ==============
86allow shared_app device:chr_file { read write };
87allow shared_app init:binder call;
88allow shared_app init:unix_stream_socket { read write };
89allow shared_app init_tmpfs:file read;
90#allow shared_app system_data_file:file append;
91allow shared_app unlabeled:file { write lock getattr open read };
92
93#============= shell ==============
94allow shell apk_private_data_file:dir getattr;
95allow shell asec_image_file:dir getattr;
96allow shell backup_data_file:dir getattr;
97allow shell device:sock_file write;
98allow shell drm_data_file:dir getattr;
99allow shell nfc_data_file:dir getattr;
100allow shell rootfs:file getattr;
101allow shell sdcard_internal:dir { create rmdir };
102#allow shell self:capability { fowner fsetid dac_override };
103#allow shell self:capability2 syslog;
104#allow shell system_data_file:dir { write remove_name add_name };
105#allow shell system_data_file:file { write create setattr };
106allow shell unlabeled:dir getattr;
107allow shell vold:unix_stream_socket connectto;
108allow shell vold_socket:sock_file write;
109
110#============= surfaceflinger ==============
111allow surfaceflinger adbd:binder call;
112allow surfaceflinger device:chr_file { read write ioctl open };
113allow surfaceflinger init:dir search;
114allow surfaceflinger init:file { read open };
115allow surfaceflinger init:unix_stream_socket { read write };
116allow surfaceflinger platform_app:binder call;
117allow surfaceflinger shell_data_file:dir search;
118allow surfaceflinger sysfs:file write;
119allow surfaceflinger system_app:dir search;
120allow surfaceflinger system_app:file { read open };
121
122#============= system ==============
123allow system device:chr_file ioctl;
124allow system init:binder { transfer call };
125allow system init:unix_stream_socket { read write setopt };
126allow system proc:file write;
127allow system security_file:lnk_file read;
128allow system unlabeled:dir { read remove_name write open add_name };
129allow system unlabeled:file { rename getattr read create open ioctl append };
130
131#============= system_app ==============
132allow system_app init:unix_stream_socket { read write setopt };
133allow system_app unlabeled:file { read getattr open };
134
135#============= untrusted_app ==============
136allow untrusted_app device:chr_file { read write };
137allow untrusted_app init:binder { transfer call };
138allow untrusted_app init:dir { getattr search };
139allow untrusted_app init:file { read getattr open };
140allow untrusted_app init:unix_stream_socket { read write connectto };
141allow untrusted_app kernel:dir { getattr search };
142allow untrusted_app kernel:file { read getattr open };
143allow untrusted_app servicemanager:dir { getattr search };
144allow untrusted_app servicemanager:file { read getattr open };
145allow untrusted_app shell_data_file:dir search;
146allow untrusted_app shell_data_file:file { read getattr open };
147#allow untrusted_app system_data_file:file append;
148allow untrusted_app ueventd:dir { search getattr };
149allow untrusted_app ueventd:file { read getattr open };
150allow untrusted_app unlabeled:dir setattr;
151allow untrusted_app zygote:dir search;
152
153#============= vold ==============
154allow vold unlabeled:dir { read getattr open };
155
156#============= wpa ==============
157allow wpa init:unix_dgram_socket { read write sendto };
158allow wpa wifi_data_file:sock_file write;
159
160#============= zygote ==============
161allow zygote security_file:lnk_file read;