X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=net%2Fbluetooth%2Frfcomm%2Fsock.c;fp=net%2Fbluetooth%2Frfcomm%2Fsock.c;h=5417f6127323ec0db7cb51d75eb1e643fb8ec339;hp=482722bbc7a052c67053a95ad357463a5bc641bf;hb=6230c9b4f8957c8938ee4cf2d03166d3c2dc89de;hpb=835acf5da239b91edb9f7ebe36516999e156e6ee diff --git a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/rfcomm/sock.c index 482722bbc7a0..5417f6127323 100644 --- a/net/bluetooth/rfcomm/sock.c +++ b/net/bluetooth/rfcomm/sock.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include @@ -264,6 +265,8 @@ static void rfcomm_sock_init(struct sock *sk, struct sock *parent) pi->sec_level = rfcomm_pi(parent)->sec_level; pi->role_switch = rfcomm_pi(parent)->role_switch; + + security_sk_clone(parent, sk); } else { pi->dlc->defer_setup = 0;