Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 1 | # 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 | |
| 7 | neverallow { |
| 8 | mlstrustedsubject |
Jiakai Zhang | 2ffeca7 | 2022-10-21 17:03:56 +0100 | [diff] [blame] | 9 | -artd # compile secondary dex files |
Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 10 | -installd |
Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 11 | } { app_data_file privapp_data_file }:file ~{ read write map getattr ioctl lock append }; |
| 12 | |
| 13 | neverallow { |
| 14 | mlstrustedsubject |
Jiakai Zhang | 2ffeca7 | 2022-10-21 17:03:56 +0100 | [diff] [blame] | 15 | -artd # compile secondary dex files |
Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 16 | -installd |
Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 17 | } { app_data_file privapp_data_file }:dir ~{ read getattr search }; |
| 18 | |
Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 19 | neverallow { |
| 20 | mlstrustedsubject |
Jiakai Zhang | 2ffeca7 | 2022-10-21 17:03:56 +0100 | [diff] [blame] | 21 | -artd # compile secondary dex files |
Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 22 | -installd |
Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 23 | -system_server |
| 24 | -adbd |
| 25 | -runas |
Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 26 | -zygote |
| 27 | } { app_data_file privapp_data_file }:dir { read getattr search }; |