blob: 0aed4d3034f0bf9255f1727affa95da56194aabe [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
Alan Stokes81e4e872020-02-11 14:43:05 +000010} { app_data_file privapp_data_file }:file ~{ read write map getattr ioctl lock append };
11
12neverallow {
13 mlstrustedsubject
14 -installd
Alan Stokes81e4e872020-02-11 14:43:05 +000015} { app_data_file privapp_data_file }:dir ~{ read getattr search };
16
Alan Stokes81e4e872020-02-11 14:43:05 +000017neverallow {
18 mlstrustedsubject
19 -installd
Alan Stokes81e4e872020-02-11 14:43:05 +000020 -system_server
21 -adbd
22 -runas
Alan Stokes81e4e872020-02-11 14:43:05 +000023 -zygote
24} { app_data_file privapp_data_file }:dir { read getattr search };