Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a164cee1 authored by Patrik Flykt's avatar Patrik Flykt Committed by Marcel Holtmann
Browse files

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: default avatarPatrik Flykt <patrik.flykt@linux.intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 84cb3df0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}