|
@@ -26,6 +26,8 @@
|
|
|
|
|
|
|
|
/* Bluetooth L2CAP sockets. */
|
|
/* Bluetooth L2CAP sockets. */
|
|
|
|
|
|
|
|
|
|
+#include <linux/security.h>
|
|
|
|
|
+
|
|
|
#include <net/bluetooth/bluetooth.h>
|
|
#include <net/bluetooth/bluetooth.h>
|
|
|
#include <net/bluetooth/hci_core.h>
|
|
#include <net/bluetooth/hci_core.h>
|
|
|
#include <net/bluetooth/l2cap.h>
|
|
#include <net/bluetooth/l2cap.h>
|
|
@@ -933,6 +935,8 @@ static void l2cap_sock_init(struct sock *sk, struct sock *parent)
|
|
|
chan->force_reliable = pchan->force_reliable;
|
|
chan->force_reliable = pchan->force_reliable;
|
|
|
chan->flushable = pchan->flushable;
|
|
chan->flushable = pchan->flushable;
|
|
|
chan->force_active = pchan->force_active;
|
|
chan->force_active = pchan->force_active;
|
|
|
|
|
+
|
|
|
|
|
+ security_sk_clone(parent, sk);
|
|
|
} else {
|
|
} else {
|
|
|
|
|
|
|
|
switch (sk->sk_type) {
|
|
switch (sk->sk_type) {
|