Skip to contentSkip to conversation

CancelBondingProcess -> Not authorized

Bluez-users Fritz Code 2 participants 6 messages Jul 2, 2008 Bluetooth drivers

lore
Share & tools
lore

Fritz Code

author
#0 lore raw

Want to cancel a running bonding process by sending CancelBondingProcess. But as a reply I get Not authorized, unfortunately.
What might be the problem (However, I'm root)?

In case I can send this message how can i detect a correct cancellation of the BondingProcess?
In dbus-api.txt I've read something about the Signal AthenticationCanceled but from which Interface gets this send?

thanks

Signature · 2 lines
Regards,
--Codefritz

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Fritz,

Quoted 4 lines

Want to cancel a running bonding process by sending CancelBondingProcess.
But as a reply I get Not authorized, unfortunately. What might be the problem (However, I'm root)?

only the program (with the unique D-Bus bus id) can call this method. Same as that we will cancel any attempt automatically if the caller dies.

Regards

Marcel

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#2 lore raw

Hi Marcel,

well I guess you mean only the same programm which has sent the CreateBonding signal can also send the CancelBonding signal? (no reconnection between so that it doesn't change its d-bus bus id) But thats the case!

Fritz

Quoted 27 lines · Marcel Holtmann

Hi Fritz,

Quoted 4 lines

Want to cancel a running bonding process by sending CancelBondingProcess.
But as a reply I get Not authorized, unfortunately. What might be the problem (However, I'm root)?

only the program (with the unique D-Bus bus id) can call this method. Same as that we will cancel any attempt automatically if the caller dies.

Regards

Marcel

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

Signature · 2 lines
Regards,
--Codefritz

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#3 lore raw

Hi Fritz,

Quoted 4 lines

well I guess you mean only the same programm which has sent the CreateBonding signal can also send the CancelBonding signal? (no reconnection between so that it doesn't change its d-bus bus id) But thats the case!

show us your testing program. You are using bluez-utils-3.35?

Regards

Marcel

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

author
#4 lore raw

Im using utils-3.31.
Programm is coming soon..

Might the scenario when I get on the bus with dbus_bus_get(), sending CreateBonding message and now do a dbus_connection_unref (accidently) after that try to send the CancelBonding message result in this error?

Quoted 2 lines

well I guess you mean only the same programm which has sent the CreateBonding signal can also send the CancelBonding signal?

Is that true so far?

Quoted 24 lines · Marcel Holtmann

Hi Fritz,

(no

Quoted 2 lines

reconnection between so that it doesn't change its d-bus bus id) But thats the case!

show us your testing program. You are using bluez-utils-3.35?

Regards

Marcel

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

Signature · 2 lines
Regards,
--Codefritz

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#5 lore raw

Hi Fritz,

Quoted 1 line

Im using utils-3.31.

start using 3.35 since we fixed a lot of stuff.

Quoted 5 lines

Programm is coming soon..

Might the scenario when I get on the bus with dbus_bus_get(), sending CreateBonding message and now do a dbus_connection_unref (accidently) after that try to send the CancelBonding message result in this error?

Yes.

Quoted 3 lines
Quoted 2 lines

well I guess you mean only the same programm which has sent the CreateBonding signal can also send the CancelBonding signal?

Is that true so far?

Yes.

Regards

Marcel

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users