| # logcat in Microdroid runs as a daemon process. It reads logs from logd and |
| # emits the logs to the virtual serial console. |
| typeattribute logcat coredomain; |
| |
| # logcat can be executed from init |
| init_daemon_domain(logcat) |
| |
| # logcat can append to the virtual console devices |
| allow logcat device:dir r_dir_perms; |
| allow logcat serial_device:chr_file ra_file_perms; |
| |
| # logcat can get logs from logd |
| read_logd(logcat) |
| |
| # Allow logcat to read ro.logd.ready so that it waits until logd is ready to |
| # accept commands |
| get_prop(logcat, logd_prop) |
| |
| allow logcat self:global_capability_class_set { sys_nice }; |
| |
| # logcat uses bootstrap to be run before apexd |
| use_bootstrap_libs(logcat) |