summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2016-03-24 16:04:15 +0200
committerMarcel Holtmann <marcel@holtmann.org>2016-04-08 19:10:57 +0200
commita164cee111085f9ee77f6038f006658249073523 (patch)
tree950a90c0b7c17cb55c25b21e098563172f57c40c /net/bluetooth
parent84cb3df02aea4b00405521e67c4c67c2d525c364 (diff)
downloadlinux-stable-a164cee111085f9ee77f6038f006658249073523.tar.gz
linux-stable-a164cee111085f9ee77f6038f006658249073523.tar.bz2
linux-stable-a164cee111085f9ee77f6038f006658249073523.zip
Bluetooth: Allow setting BT_SECURITY_FIPS with setsockopt
Update the security level check to allow setting BT_SECURITY_FIPS for an L2CAP socket. Signed-off-by: Patrik Flykt <patrik.flykt@linux.intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c
index e4cae72895a7..388ee8b59145 100644
--- a/net/bluetooth/l2cap_sock.c
+++ b/net/bluetooth/l2cap_sock.c
@@ -778,7 +778,7 @@ static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname,
}
if (sec.level < BT_SECURITY_LOW ||
- sec.level > BT_SECURITY_HIGH) {
+ sec.level > BT_SECURITY_FIPS) {
err = -EINVAL;
break;
}