]> git.hungrycats.org Git - linux/commit
LLC: Restrict LLC sockets to root
authorPatrick McHardy <kaber@trash.net>
Mon, 7 Apr 2008 06:40:33 +0000 (23:40 -0700)
committerChris Wright <chrisw@sous-sol.org>
Sat, 19 Apr 2008 01:53:25 +0000 (18:53 -0700)
commite982cc89839374bb1a504448401dfafaf772bdbf
treef9356c889e3e2fc0a1333992b7e57f89681c5f44
parentc6724ce3027b11151d39b4d19b85b9401462eebd
LLC: Restrict LLC sockets to root

Upstream commit: 3480c63bdf008e9289aab94418f43b9592978fff

LLC currently allows users to inject raw frames, including IP packets
encapsulated in SNAP. While Linux doesn't handle IP over SNAP, other
systems do. Restrict LLC sockets to root similar to packet sockets.

[ Modified Patrick's patch to use CAP_NEW_RAW --DaveM ]

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/llc/af_llc.c