diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2016-03-24 14:04:15 (GMT) |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2016-04-08 17:10:57 (GMT) |
commit | a164cee111085f9ee77f6038f006658249073523 (patch) | |
tree | 950a90c0b7c17cb55c25b21e098563172f57c40c | |
parent | 84cb3df02aea4b00405521e67c4c67c2d525c364 (diff) | |
download | linux-a164cee111085f9ee77f6038f006658249073523.tar.xz |
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>
-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 e4cae72..388ee8b 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; } |