From 7b46d578e7bade00ade96f85edf846e91c72adcc Mon Sep 17 00:00:00 2001 From: bohu Date: Mon, 4 Dec 2017 12:57:10 -0800 Subject: [PATCH] emulator: allows goldfish to disable bootanimation [ 2.447332] type=1400 audit(1512424670.440:8): avc: denied { write } for pid=1408 comm="setprop" name="property_service" dev="tmpfs" ino=1216 scontext=u:r:goldfish_setup:s0 tcontext=u:object_r:property_socket:s0 tclass=sock_file permissive=0 [ 2.455350] init: Created socket '/dev/socket/adbd', mode 660, user 1000, group 1000 console:/ $ [ 2.470594] init: Service 'ranchu-setup' (pid 1387) killed by signal 1 BUG: 70176291 Change-Id: I309ff3cb89ec01673e84fb275fe795f95711edd6 --- target/board/generic/sepolicy/goldfish_setup.te | 1 + 1 file changed, 1 insertion(+) diff --git a/target/board/generic/sepolicy/goldfish_setup.te b/target/board/generic/sepolicy/goldfish_setup.te index bcd49bdc4..eb913e921 100644 --- a/target/board/generic/sepolicy/goldfish_setup.te +++ b/target/board/generic/sepolicy/goldfish_setup.te @@ -4,6 +4,7 @@ type goldfish_setup_exec, vendor_file_type, exec_type, file_type; init_daemon_domain(goldfish_setup) +set_prop(goldfish_setup, debug_prop); allow goldfish_setup self:capability { net_admin net_raw }; allow goldfish_setup self:udp_socket { create ioctl }; allow goldfish_setup vendor_toolbox_exec:file execute_no_trans;