Skip to content
Snippets Groups Projects
Commit 9557c69c authored by Jerry Lee's avatar Jerry Lee Committed by Yuan Lin
Browse files

net: wireless: bcmdhd: check privilege on priv cmd


    check net admin capability for ioctl calls
    BUG=26425765

Signed-off-by: default avatarJerry Lee <jerrylee@broadcom.com>
parent ecd0dc21
Branches
Tags
No related merge requests found
...@@ -1287,6 +1287,11 @@ int wl_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd) ...@@ -1287,6 +1287,11 @@ int wl_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd)
goto exit; goto exit;
} }
if (!capable(CAP_NET_ADMIN)) {
ret = -EPERM;
goto exit;
}
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
if (is_compat_task()) { if (is_compat_task()) {
compat_android_wifi_priv_cmd compat_priv_cmd; compat_android_wifi_priv_cmd compat_priv_cmd;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment