1*e4a36f41SAndroid Build Coastguard Worker# preopt2cachename executable 2*e4a36f41SAndroid Build Coastguard Worker# 3*e4a36f41SAndroid Build Coastguard Worker# This executable translates names from the preopted versions the build system 4*e4a36f41SAndroid Build Coastguard Worker# creates to the names the runtime expects in the data directory. 5*e4a36f41SAndroid Build Coastguard Worker 6*e4a36f41SAndroid Build Coastguard Workertype preopt2cachename, domain, coredomain; 7*e4a36f41SAndroid Build Coastguard Workertype preopt2cachename_exec, system_file_type, exec_type, file_type; 8*e4a36f41SAndroid Build Coastguard Worker 9*e4a36f41SAndroid Build Coastguard Worker# Allow write to stdout. 10*e4a36f41SAndroid Build Coastguard Workerallow preopt2cachename cppreopts:fd use; 11*e4a36f41SAndroid Build Coastguard Workerallow preopt2cachename cppreopts:fifo_file { getattr read write }; 12*e4a36f41SAndroid Build Coastguard Worker 13*e4a36f41SAndroid Build Coastguard Worker# Allow write to logcat. 14*e4a36f41SAndroid Build Coastguard Workerallow preopt2cachename proc_net_type:file r_file_perms; 15*e4a36f41SAndroid Build Coastguard Workeruserdebug_or_eng(` 16*e4a36f41SAndroid Build Coastguard Worker auditallow preopt2cachename proc_net_type:{ dir file lnk_file } { getattr open read }; 17*e4a36f41SAndroid Build Coastguard Worker') 18