Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Dec 2005 13:33:05 -0800
From:      Maksim Yevmenkin <maksim.yevmenkin@savvis.net>
To:        =?ISO-8859-1?Q?Zahemszky_G=E1bor?= <Gabor@Zahemszky.HU>
Cc:        freebsd-bluetooth@freebsd.org
Subject:   Re: Local browsing: permission denied
Message-ID:  <4394B211.1080503@savvis.net>
In-Reply-To: <4394A53E.1050109@Zahemszky.HU>
References:  <4394A53E.1050109@Zahemszky.HU>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

> I'm using 6-stable, with the new bluetooth-rc system. It works fine, but 
> with sdpcontrol, I have a little problem. If I try it as a regular user:
> 
> $ sdpcontrol -l browse
> Could not execute command "browse". Permission denied

'-l' means query services registered with _local_ sdpd(8) daemon. it 
means query will go via control socket. here is the quote from sdpd(8) 
man page

===

CAVEAT

...

Access rights on the control socket define which application can regis-
ter, remove or change the service.  The application must be able to write
to and read from the control socket in order to perform any query to the
Service Database via control socket.

===

so you need to run "sdpcontrol -l browse" as root.

> $ sdpcontrol -a my-t610 browse # BT if off on my tel.
> Could not execute command "browse". Host is down

this is normal. you have turned off bluetooth on the phone.

> $ sdpcontrol -a zahygabi-t610 browse # BT is on
> 
> Record Handle: 0x00010000
> blabla ....

this is normal too.

> So why I can't browse local servers?

because sdpcontrol(8) does not have enough permissions to write to the 
control socket. yes, i agree, its not very convenient for user. i'm 
currently thinking about better way to handle this type of queries.

thanks,
max



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4394B211.1080503>