sepolicy_vndr: add policy for hostapd

This commit gives hostapd permissions rw_dir_perms to open, search, write,
add_name, remove_name in wifi data files.

Change-Id: Ifc39cd245da035512af89733b55f57e9ce608f00
CRs-Fixed: 3008412
This commit is contained in:
Swarn Singh 2021-09-14 13:00:23 +05:30 committed by Gerrit - the friendly Code Review server
parent 26c2f7d447
commit 809262547f

View file

@ -29,7 +29,7 @@
r_dir_file(hal_wifi_hostapd_default, vendor_wifi_vendor_data_file)
allow hal_wifi_hostapd_default hostapd_data_file:dir rw_dir_perms;
allow hal_wifi_hostapd_default hostapd_data_file:file create_file_perms;
allow hal_wifi_hostapd_default vendor_wifi_vendor_data_file:dir write;
allow hal_wifi_hostapd_default vendor_wifi_vendor_data_file:dir rw_dir_perms;
# Allow hostapd to create control socket under its data folder
allow hal_wifi_hostapd_default hostapd_data_file:sock_file create_file_perms;