X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fbluetooth%2Fl2cap_sock.c;h=5c406d3136f74fc206380968a0a98c3c4b742474;hb=8cd7920370a3715ccbd1c98bf33f172b8837dc0b;hp=61f1f623091dbcd89992a64a635fc8de62963795;hpb=df80442d1ee2902c2e39f90f18160f2e08d14c06;p=~andy%2Flinux diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c index 61f1f623091..5c406d3136f 100644 --- a/net/bluetooth/l2cap_sock.c +++ b/net/bluetooth/l2cap_sock.c @@ -26,6 +26,9 @@ /* Bluetooth L2CAP sockets. */ +#include +#include + #include #include #include @@ -933,6 +936,8 @@ static void l2cap_sock_init(struct sock *sk, struct sock *parent) chan->force_reliable = pchan->force_reliable; chan->flushable = pchan->flushable; chan->force_active = pchan->force_active; + + security_sk_clone(parent, sk); } else { switch (sk->sk_type) {