Thread (7 messages) read the whole thread 7 messages, 2 authors, 2011-11-29
STALE5360d

[PATCH obexd 1/6 v2] bluetooth: make use of secure flag for authorization

From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2011-11-27 21:12:06
Subsystem: the rest · Maintainer: Linus Torvalds

From: Luiz Augusto von Dentz <redacted>

Using secure flag is probably safer here as other services beside OPP
may not require security/authorization.
---

 plugins/bluetooth.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index c73beb6..613b2a5 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -479,7 +479,7 @@ static void confirm_event(GIOChannel *io, void *user_data)
 		goto drop;
 	}
 
-	if (driver->service != OBEX_OPP) {
+	if (driver->secure) {
 		if (request_service_authorization(service, io, address) < 0)
 			goto drop;
 
-- 
1.7.7.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help