From c4cf20a146134748c2daef6f0cbf23489fc33a58 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Thu, 22 Dec 2022 10:24:26 +0900 Subject: [PATCH] prng_seeder is a bootstrap process in microdroid It is started very early before linker namespaces are configured, thus making it a bootstrap process. Bug: 263398430 Test: watch boottime benchmark Change-Id: I60411601a6be78f8401e43d136b567615002797c --- microdroid/system/private/prng_seeder.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/microdroid/system/private/prng_seeder.te b/microdroid/system/private/prng_seeder.te index 24d96ef09..ab4e27548 100644 --- a/microdroid/system/private/prng_seeder.te +++ b/microdroid/system/private/prng_seeder.te @@ -8,6 +8,9 @@ type prng_seeder, domain, coredomain; type prng_seeder_exec, system_file_type, exec_type, file_type; init_daemon_domain(prng_seeder) +# prng_seeder is using bootstrap bionic +use_bootstrap_libs(prng_seeder) + # Socket open and listen are performed by init. allow prng_seeder prng_seeder:unix_stream_socket { read write getattr accept }; allow prng_seeder hw_random_device:chr_file { read open };