Skip to content
Snippets Groups Projects
  • Nick Kralevich's avatar
    ba1a7315
    allow wpa_cli to work. · ba1a7315
    Nick Kralevich authored
    With wpa_supplicant in enforcing, wpa_cli doesn't work.
    
    Denial:
    
    type=1400 audit(1390597866.260:59): avc:  denied  { write } for  pid=3410 comm="wpa_supplicant" name="wpa_ctrl_4852-1" dev="mmcblk0p28" ino=618993 scontext=u:r:wpa:s0 tcontext=u:object_r:wifi_data_file:s0 tclass=sock_file
    
    After I9e35cc93abf89ce3594860aa3193f84a3b42ea6e and
    I51b09c5e40946673a38732ea9f601b2d047d3b62, the /data/misc/wifi/sockets
    directory is labeled properly. This change allows the communication
    between the su domain and wpa.
    
    Steps to reproduce:
      Start wifi (so wpa_supplicant will run)
      Start wpa_cli - it will hand
      $ adb root
      $ adb shell
      # wpa_cli -g @android:wpa_wlan0
    
    Bug: 12721629
    Change-Id: I03170acc155ad122c5197baaf590d17fc1ace6a5
    ba1a7315
    History
    allow wpa_cli to work.
    Nick Kralevich authored
    With wpa_supplicant in enforcing, wpa_cli doesn't work.
    
    Denial:
    
    type=1400 audit(1390597866.260:59): avc:  denied  { write } for  pid=3410 comm="wpa_supplicant" name="wpa_ctrl_4852-1" dev="mmcblk0p28" ino=618993 scontext=u:r:wpa:s0 tcontext=u:object_r:wifi_data_file:s0 tclass=sock_file
    
    After I9e35cc93abf89ce3594860aa3193f84a3b42ea6e and
    I51b09c5e40946673a38732ea9f601b2d047d3b62, the /data/misc/wifi/sockets
    directory is labeled properly. This change allows the communication
    between the su domain and wpa.
    
    Steps to reproduce:
      Start wifi (so wpa_supplicant will run)
      Start wpa_cli - it will hand
      $ adb root
      $ adb shell
      # wpa_cli -g @android:wpa_wlan0
    
    Bug: 12721629
    Change-Id: I03170acc155ad122c5197baaf590d17fc1ace6a5