Skip to contentSkip to conversation

bluetooth: Allow setting BT_SECURITY_FIPS with setsockopt

PATCH In review Patrik Flykt 2 participants 2 messages Mar 24, 2016 – Apr 8, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bluetooth: Allow setting BT_SECURITY_FIPS with setsockopt

Update the security level check to allow setting BT_SECURITY_FIPS for an L2CAP socket.

---

This seems to have been forgotten when FIPS was introduced?

Patrik

 net/bluetooth/l2cap_sock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/l2cap_sock.c +1 -1
index e4cae72..388ee8b 100644
@@ -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;
 		}
Signature · 1 line
2.1.4
maintainer
#1 lore raw

Hi Patrik,

Quoted 6 lines

Update the security level check to allow setting BT_SECURITY_FIPS for an L2CAP socket.

---

Quoted 7 lines

This seems to have been forgotten when FIPS was introduced?

Patrik

net/bluetooth/l2cap_sock.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel