blob: 67bd1137ce1c38bf6d400a3917417dbe9b51bb83 [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
Jiakai Zhang2ffeca72022-10-21 17:03:56 +01009 -artd # compile secondary dex files
Alan Stokes81e4e872020-02-11 14:43:05 +000010 -installd
Alan Stokes81e4e872020-02-11 14:43:05 +000011} { app_data_file privapp_data_file }:file ~{ read write map getattr ioctl lock append };
12
13neverallow {
14 mlstrustedsubject
Jiakai Zhang2ffeca72022-10-21 17:03:56 +010015 -artd # compile secondary dex files
Alan Stokes81e4e872020-02-11 14:43:05 +000016 -installd
Alan Stokes81e4e872020-02-11 14:43:05 +000017} { app_data_file privapp_data_file }:dir ~{ read getattr search };
18
Alan Stokes81e4e872020-02-11 14:43:05 +000019neverallow {
20 mlstrustedsubject
Jiakai Zhang2ffeca72022-10-21 17:03:56 +010021 -artd # compile secondary dex files
Alan Stokes81e4e872020-02-11 14:43:05 +000022 -installd
Alan Stokes81e4e872020-02-11 14:43:05 +000023 -system_server
24 -adbd
25 -runas
Alan Stokes81e4e872020-02-11 14:43:05 +000026 -zygote
27} { app_data_file privapp_data_file }:dir { read getattr search };