Loading drivers/net/tun.c +6 −0 Original line number Diff line number Diff line Loading @@ -2003,6 +2003,12 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd, int le; int ret; #ifdef CONFIG_ANDROID_PARANOID_NETWORK if (cmd != TUNGETIFF && !capable(CAP_NET_ADMIN)) { return -EPERM; } #endif if (cmd == TUNSETIFF || cmd == TUNSETQUEUE || _IOC_TYPE(cmd) == 0x89) { if (copy_from_user(&ifr, argp, ifreq_len)) return -EFAULT; Loading Loading
drivers/net/tun.c +6 −0 Original line number Diff line number Diff line Loading @@ -2003,6 +2003,12 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd, int le; int ret; #ifdef CONFIG_ANDROID_PARANOID_NETWORK if (cmd != TUNGETIFF && !capable(CAP_NET_ADMIN)) { return -EPERM; } #endif if (cmd == TUNSETIFF || cmd == TUNSETQUEUE || _IOC_TYPE(cmd) == 0x89) { if (copy_from_user(&ifr, argp, ifreq_len)) return -EFAULT; Loading