From 2b09698a80c0e6b51172abdf77bad0c170169218 Mon Sep 17 00:00:00 2001 From: "jinhee0207.jo" <jinhee0207.jo@lge.com> Date: Fri, 5 Oct 2018 17:25:20 +0900 Subject: [PATCH] Add sepolicy labeling of wifi.concurrent.interface property. 1. "Add sepolicy labeling of wifi.concurrent.interface" in property_contexts. wlan1 interface is added first in Pie OS. And wlan1 interface has getIfaceName by property_get in wifi_chip.cpp. (/hardware/interface/wifi/1.2/default/wifi_chip.cpp) But, there is no sepolicy about this interface. wlan0 and p2p0 is definitely specified. So, if we try to use wlan1, native sepolicy violation occurs. This is why this labeling is necessary. 2. wlan1: Property labeling same with wlan0 or p2p0. wifi.interface u:object_r:exported_default_prop:s0 exact string Test: Basic Sanity - Verified tethering by using wlan1 Bug: 117302656 Change-Id: I24194bca7176e1927164228e6571870531a9bc56 Signed-off-by: Jinhee Jo <jinhee0207.jo@lge.com> --- public/property_contexts | 1 + 1 file changed, 1 insertion(+) diff --git a/public/property_contexts b/public/property_contexts index 5ba0abecf..87a81d746 100644 --- a/public/property_contexts +++ b/public/property_contexts @@ -316,6 +316,7 @@ ro.vendor.build.fingerprint u:object_r:exported_default_prop:s0 exact string ro.vndk.lite u:object_r:exported_default_prop:s0 exact bool ro.vndk.version u:object_r:exported_default_prop:s0 exact string ro.vts.coverage u:object_r:exported_default_prop:s0 exact int +wifi.concurrent.interface u:object_r:exported_default_prop:s0 exact string wifi.direct.interface u:object_r:exported_default_prop:s0 exact string wifi.interface u:object_r:exported_default_prop:s0 exact string -- GitLab