Allow wificond to clean up wpa_supplicant state

system_server communicates with wpa_supplicant via various control
sockets.  Allow wificond to unlink these sockets after killing
wpa_supplicant.

Bug: 30666540
Change-Id: Ic1419a587f066c36723c24518952025834959535
(cherry picked from commit ba96cd1cc3)
This commit is contained in:
Christopher Wiley 2016-08-15 12:58:58 -07:00 committed by Mitchell Wills
parent fd1cdd3f39
commit af6faa70bf

View file

@ -36,3 +36,8 @@ allow wificond self:capability { chown fowner };
allow wificond hostapd:process { signal signull };
# wificond needs kill to drop mad signals on hostapd.
allow wificond self:capability kill;
# wificond cleans up sockets created by wpa_supplicant and framework
allow wificond wpa_socket:dir rw_dir_perms;
allow wificond system_wpa_socket:sock_file unlink;
allow wificond wpa_socket:sock_file unlink;