Andreas Gampe | 4abfe60 | 2019-02-21 16:11:27 -0800 | [diff] [blame^] | 1 | # preopt2cachename executable |
| 2 | # |
| 3 | # This executable translates names from the preopted versions the build system |
| 4 | # creates to the names the runtime expects in the data directory. |
| 5 | type preopt2cachename, domain; |
| 6 | type preopt2cachename_exec, system_file_type, exec_type, file_type; |
| 7 | |
Alex Klyubin | f5446eb | 2017-03-23 14:27:32 -0700 | [diff] [blame] | 8 | typeattribute preopt2cachename coredomain; |
Andreas Gampe | 4abfe60 | 2019-02-21 16:11:27 -0800 | [diff] [blame^] | 9 | |
| 10 | # Allow write to stdout. |
| 11 | allow preopt2cachename cppreopts:fd use; |
| 12 | allow preopt2cachename cppreopts:fifo_file { getattr read write }; |
| 13 | |
| 14 | # Allow write to logcat. |
| 15 | allow preopt2cachename proc_net_type:file r_file_perms; |
| 16 | userdebug_or_eng(` |
| 17 | auditallow preopt2cachename proc_net_type:{ dir file lnk_file } { getattr open read }; |
| 18 | ') |