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 |
| 9 | -installd |
Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 10 | } { app_data_file privapp_data_file }:file ~{ read write map getattr ioctl lock append }; |
| 11 | |
| 12 | neverallow { |
| 13 | mlstrustedsubject |
| 14 | -installd |
Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 15 | } { app_data_file privapp_data_file }:dir ~{ read getattr search }; |
| 16 | |
Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 17 | neverallow { |
| 18 | mlstrustedsubject |
| 19 | -installd |
Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 20 | -system_server |
| 21 | -adbd |
| 22 | -runas |
Alan Stokes | 81e4e87 | 2020-02-11 14:43:05 +0000 | [diff] [blame] | 23 | -zygote |
| 24 | } { app_data_file privapp_data_file }:dir { read getattr search }; |