Skip to content
Snippets Groups Projects
Commit 60db356d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Give hostapd permissions to use its control socket"

parents 75b4b608 cbabe363
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,7 @@ allow hostapd self:netlink_route_socket nlmsg_write; ...@@ -26,8 +26,7 @@ allow hostapd self:netlink_route_socket nlmsg_write;
allow hostapd wifi_data_file:file rw_file_perms; allow hostapd wifi_data_file:file rw_file_perms;
r_dir_file(hostapd, wifi_data_file) r_dir_file(hostapd, wifi_data_file)
# hostapd needs to bind to (and possibly create) its control interface socket. # hostapd wants to create the directory holding its control socket.
allow hostapd hostapd_socket:dir rw_dir_perms; allow hostapd hostapd_socket:dir create_dir_perms;
# hostapd likes to chmod its socket directory. # hostapd needs to create, bind to, read, and write its control socket.
allow hostapd hostapd_socket:dir setattr;
allow hostapd hostapd_socket:sock_file create_file_perms; allow hostapd hostapd_socket:sock_file create_file_perms;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment