Skip to content
Snippets Groups Projects
Commit a7ea6de2 authored by Dmitry Shmidt's avatar Dmitry Shmidt Committed by android-build-merger
Browse files

Merge "Fix wificond permissions for hikey" am: 62a225ff

am: d8d0c9d5

Change-Id: I479448c613d19d83d96caf251879d2a2c629b355
parents a7b64519 d8d0c9d5
No related branches found
No related tags found
No related merge requests found
...@@ -19,11 +19,15 @@ set_prop(wificond, ctl_default_prop) ...@@ -19,11 +19,15 @@ set_prop(wificond, ctl_default_prop)
# create sockets to set interfaces up and down # create sockets to set interfaces up and down
allow wificond self:udp_socket create_socket_perms; allow wificond self:udp_socket create_socket_perms;
# See discussion in b/31226503
allowxperm wificond self:udp_socket ioctl unpriv_sock_ioctls;
# setting interface state up/down is a privileged ioctl # setting interface state up/down is a privileged ioctl
allowxperm wificond self:udp_socket ioctl { SIOCSIFFLAGS }; allowxperm wificond self:udp_socket ioctl { SIOCSIFFLAGS };
allow wificond self:capability { net_admin net_raw }; allow wificond self:capability { net_admin net_raw };
# allow wificond to speak to nl80211 in the kernel # allow wificond to speak to nl80211 in the kernel
allow wificond self:netlink_socket create_socket_perms; allow wificond self:netlink_socket create_socket_perms;
# newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets
allow wificond self:netlink_generic_socket create_socket_perms;
r_dir_file(wificond, proc_net) r_dir_file(wificond, proc_net)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment