View | Details | Raw Unified | Return to bug 10035
Collapse All | Expand All

(-)linux-2.6.16-026test016-pppd/drivers/net/ppp_generic.c.pppd (-1 / +2 lines)
Lines 361-367 static int ppp_open(struct inode *inode, Link Here
361
	/*
361
	/*
362
	 * This could (should?) be enforced by the permissions on /dev/ppp.
362
	 * This could (should?) be enforced by the permissions on /dev/ppp.
363
	 */
363
	 */
364
	if (!capable(CAP_NET_ADMIN))
364
	if (!capable(CAP_NET_ADMIN) && !capable(CAP_VE_NET_ADMIN))
365
		return -EPERM;
365
		return -EPERM;
366
	return 0;
366
	return 0;
367
}
367
}
Lines 996-1001 static void ppp_setup(struct net_device Link Here
996
	dev->tx_queue_len = 3;
996
	dev->tx_queue_len = 3;
997
	dev->type = ARPHRD_PPP;
997
	dev->type = ARPHRD_PPP;
998
	dev->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST;
998
	dev->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST;
999
	dev->features |=  NETIF_F_VIRTUAL;
999
}
1000
}
1000
1001
1001
/*
1002
/*

Return to bug 10035