All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bluetooth: Allow setting BT_SECURITY_FIPS with setsockopt
@ 2016-03-24 14:04 Patrik Flykt
  2016-04-08 17:11 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Patrik Flykt @ 2016-03-24 14:04 UTC (permalink / raw)
  To: linux-bluetooth

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>
---

This seems to have been forgotten when FIPS was introduced?

     Patrik


 net/bluetooth/l2cap_sock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 		}
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] bluetooth: Allow setting BT_SECURITY_FIPS with setsockopt
  2016-03-24 14:04 [PATCH] bluetooth: Allow setting BT_SECURITY_FIPS with setsockopt Patrik Flykt
@ 2016-04-08 17:11 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2016-04-08 17:11 UTC (permalink / raw)
  To: Patrik Flykt; +Cc: linux-bluetooth

Hi Patrik,

> 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>
> ---
> 
> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-08 17:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-24 14:04 [PATCH] bluetooth: Allow setting BT_SECURITY_FIPS with setsockopt Patrik Flykt
2016-04-08 17:11 ` Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.