Skip to content
Snippets Groups Projects
  • jinhee0207.jo's avatar
    2b09698a
    Add sepolicy labeling of wifi.concurrent.interface property. · 2b09698a
    jinhee0207.jo authored
    
    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: default avatarJinhee Jo <jinhee0207.jo@lge.com>
    2b09698a
    History
    Add sepolicy labeling of wifi.concurrent.interface property.
    jinhee0207.jo authored
    
    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: default avatarJinhee Jo <jinhee0207.jo@lge.com>