On Tue, 4 Aug 2009, Paul Moore wrote: > While drivers in general aren't good places for LSM hooks the TUN driver is > a bit different because of how it handles sockets and network traffic. The > problem lies in the fact that the TUN driver creates a sock structure to use > when sending network traffic but the sock is never put through the same LSM > setup/control as other sock structures on the system which makes enforcing > security on TUN generated traffic difficult for some LSMs. This patch set > adds three new LSM hooks, all specific to the TUN driver (none of the existing > hooks made sense, trust me we tried), to control and monitor the creating and > attachment of TUN devices. Looks ok to me in principle. For netdev reviewers: we're lacking proper LSM control over tun devices because they're not created like normal sockets, and subsequently don't get labeled appropriately. They also behave differently to normal sockets and need special handling for security per Paul's notes. - James -- James Morris <jmorris@xxxxxxxxx> -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.