blob: b803dbcad721881a2b68a049cb067fe9dca7de07 [file] [log] [blame]
Alan Stokes81e4e872020-02-11 14:43:05 +00001# MLS override can't be used to access private app data.
2
3# Apps should not normally be mlstrustedsubject, but if they must be
4# they cannot use this to access app private data files; their own app
5# data files must use a different label.
6
7neverallow {
8 mlstrustedsubject
9 -installd
10 -iorap_prefetcherd
11 -iorap_inode2filename
12} { app_data_file privapp_data_file }:file ~{ read write map getattr ioctl lock append };
13
14neverallow {
15 mlstrustedsubject
16 -installd
17 -iorap_prefetcherd
18 -iorap_inode2filename
19} { app_data_file privapp_data_file }:dir ~{ read getattr search };
20
21# TODO(b/141677108): See if we can remove any of these.
22neverallow {
23 mlstrustedsubject
24 -installd
25 -iorap_prefetcherd
26 -iorap_inode2filename
27 -system_server
28 -adbd
29 -runas
30 -dexoptanalyzer
31 -zygote
32} { app_data_file privapp_data_file }:dir { read getattr search };