]> err.no Git - linux-2.6/blobdiff - net/llc/af_llc.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
[linux-2.6] / net / llc / af_llc.c
index 46cf962f7f8889f049a3b0406f9f5f3b6c31034c..8c50eb430c19514f1aa811ef77bc6a12c5f7a399 100644 (file)
@@ -155,6 +155,9 @@ static int llc_ui_create(struct net *net, struct socket *sock, int protocol)
        struct sock *sk;
        int rc = -ESOCKTNOSUPPORT;
 
+       if (!capable(CAP_NET_RAW))
+               return -EPERM;
+
        if (net != &init_net)
                return -EAFNOSUPPORT;