Thread (6 messages) read the whole thread 6 messages, 1 author, 2011-11-25
STALE5363d

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

From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Date: 2011-11-25 11:33:43
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..7d5aedb 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 == TRUE) {
 		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