blob: dcfba14d52fb2f913eb5603303b20bb0f03115ec [file] [log] [blame]
Andreas Gampe4abfe602019-02-21 16:11:27 -08001# 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 Gampe4abfe602019-02-21 16:11:27 -08005
Andreas Gampe2a9eaec2019-02-22 08:36:41 -08006type preopt2cachename, domain, coredomain;
7type preopt2cachename_exec, system_file_type, exec_type, file_type;
Andreas Gampe4abfe602019-02-21 16:11:27 -08008
9# Allow write to stdout.
10allow preopt2cachename cppreopts:fd use;
11allow preopt2cachename cppreopts:fifo_file { getattr read write };
12
13# Allow write to logcat.
14allow preopt2cachename proc_net_type:file r_file_perms;
15userdebug_or_eng(`
16 auditallow preopt2cachename proc_net_type:{ dir file lnk_file } { getattr open read };
17')