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. |
Andreas Gampe | 4abfe60 | 2019-02-21 16:11:27 -0800 | [diff] [blame] | 5 | |
Andreas Gampe | 2a9eaec | 2019-02-22 08:36:41 -0800 | [diff] [blame] | 6 | type preopt2cachename, domain, coredomain; |
| 7 | type preopt2cachename_exec, system_file_type, exec_type, file_type; |
Andreas Gampe | 4abfe60 | 2019-02-21 16:11:27 -0800 | [diff] [blame] | 8 | |
| 9 | # Allow write to stdout. |
| 10 | allow preopt2cachename cppreopts:fd use; |
| 11 | allow preopt2cachename cppreopts:fifo_file { getattr read write }; |
| 12 | |
| 13 | # Allow write to logcat. |
| 14 | allow preopt2cachename proc_net_type:file r_file_perms; |
| 15 | userdebug_or_eng(` |
| 16 | auditallow preopt2cachename proc_net_type:{ dir file lnk_file } { getattr open read }; |
| 17 | ') |