msm: ipa: rmnet: Make code changes with respect to CR#2046006
Check for CAP_NET_ADMIN capability of the user space application who tries to access rmnet driver IOCTL. Bug: 36367253 Change-Id: If6bb4b54659306c5103b5e34bf02c7234c851e0a CRs-Fixed: 2226355 Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
This commit is contained in:
parent
35b2753b15
commit
834a002042
|
@ -1285,6 +1285,8 @@ static int ipa_wwan_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
|||
|
||||
/* Extended IOCTLs */
|
||||
case RMNET_IOCTL_EXTENDED:
|
||||
if (!ns_capable(dev_net(dev)->user_ns, CAP_NET_ADMIN))
|
||||
return -EPERM;
|
||||
IPAWANDBG("get ioctl: RMNET_IOCTL_EXTENDED\n");
|
||||
if (copy_from_user(&extend_ioctl_data,
|
||||
(u8 *)ifr->ifr_ifru.ifru_data,
|
||||
|
|
Loading…
Reference in New Issue