diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2016-03-24 10:04:15 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2016-04-08 13:10:57 -0400 |
commit | a164cee111085f9ee77f6038f006658249073523 (patch) | |
tree | 950a90c0b7c17cb55c25b21e098563172f57c40c /net/bluetooth/l2cap_sock.c | |
parent | 84cb3df02aea4b00405521e67c4c67c2d525c364 (diff) |
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/l2cap_sock.c')
-rw-r--r-- | net/bluetooth/l2cap_sock.c | 2 |
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, | |||
778 | } | 778 | } |
779 | 779 | ||
780 | if (sec.level < BT_SECURITY_LOW || | 780 | if (sec.level < BT_SECURITY_LOW || |
781 | sec.level > BT_SECURITY_HIGH) { | 781 | sec.level > BT_SECURITY_FIPS) { |
782 | err = -EINVAL; | 782 | err = -EINVAL; |
783 | break; | 783 | break; |
784 | } | 784 | } |