2020-02-11 15:43:05 +01:00
|
|
|
# MLS override can't be used to access private app data.
|
|
|
|
|
|
|
|
# Apps should not normally be mlstrustedsubject, but if they must be
|
|
|
|
# they cannot use this to access app private data files; their own app
|
|
|
|
# data files must use a different label.
|
|
|
|
|
|
|
|
neverallow {
|
|
|
|
mlstrustedsubject
|
2022-10-21 18:03:56 +02:00
|
|
|
-artd # compile secondary dex files
|
2020-02-11 15:43:05 +01:00
|
|
|
-installd
|
|
|
|
} { app_data_file privapp_data_file }:file ~{ read write map getattr ioctl lock append };
|
|
|
|
|
|
|
|
neverallow {
|
|
|
|
mlstrustedsubject
|
2022-10-21 18:03:56 +02:00
|
|
|
-artd # compile secondary dex files
|
2020-02-11 15:43:05 +01:00
|
|
|
-installd
|
|
|
|
} { app_data_file privapp_data_file }:dir ~{ read getattr search };
|
|
|
|
|
|
|
|
neverallow {
|
|
|
|
mlstrustedsubject
|
2022-10-21 18:03:56 +02:00
|
|
|
-artd # compile secondary dex files
|
2020-02-11 15:43:05 +01:00
|
|
|
-installd
|
|
|
|
-system_server
|
|
|
|
-adbd
|
|
|
|
-runas
|
|
|
|
-zygote
|
|
|
|
} { app_data_file privapp_data_file }:dir { read getattr search };
|