From a27d4b72702d141937a741ac6c730e88a1c3ab12 Mon Sep 17 00:00:00 2001 From: Bjoern Johansson Date: Fri, 23 Mar 2018 11:26:40 -0700 Subject: [PATCH] Allow radio to read emulator network properties A recent change added SELinux labels to the properties used by the DHCP software and RIL to configure the network. Unfortunately that change didn't give RIL the permissions needed to read those properties which broke radio networking for the emulator. Fix it by allowing radio related code to read the properties again. BUG: 76211046 Test: Run emulator with -feature -Wifi and verify network connectivity Change-Id: I7663a6598e2d501ee8336b2dae5fd78ff4ff69bc --- target/board/generic/sepolicy/radio.te | 3 +++ target/board/generic/sepolicy/rild.te | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 target/board/generic/sepolicy/radio.te create mode 100644 target/board/generic/sepolicy/rild.te diff --git a/target/board/generic/sepolicy/radio.te b/target/board/generic/sepolicy/radio.te new file mode 100644 index 0000000000..742d3b2d20 --- /dev/null +++ b/target/board/generic/sepolicy/radio.te @@ -0,0 +1,3 @@ +# Allow the radio to read these properties, they only have an SELinux label in +# the emulator. +get_prop(radio, net_eth0_prop); diff --git a/target/board/generic/sepolicy/rild.te b/target/board/generic/sepolicy/rild.te new file mode 100644 index 0000000000..ea183739a2 --- /dev/null +++ b/target/board/generic/sepolicy/rild.te @@ -0,0 +1,3 @@ +# Allow rild to read these properties, they only have an SELinux label in the +# emulator. +get_prop(rild, net_eth0_prop);