Return-Path: Message-ID: Date: Mon, 20 Nov 2006 09:31:57 +0100 From: "Mikael Lindqvist" To: "BlueZ users" In-Reply-To: <1163940471.11790.2.camel@localhost> MIME-Version: 1.0 References: <1163940471.11790.2.camel@localhost> Subject: Re: [Bluez-users] permissions to set local name Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0536850405==" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net --===============0536850405== Content-Type: multipart/alternative; boundary="----=_Part_33225_24347492.1164011517499" ------=_Part_33225_24347492.1164011517499 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi again, How does hcid know what mode that is "best" for my application? I want to make sure that it is 1 (result with rssi), is there a way I can tell hcid to always choose that mode then? Also, I would like to have as few external dependencies, so if possible I would prefer to not use d-bus. Is there a way to set the local name without d-bus and without root privileges? -- Mikael On 11/19/06, Marcel Holtmann wrote: > > Hi Mikael, > > > I've noticed that only the superuser may perform some hci commands, > > such as OCF_WRITE_LOCAL_NAME and OCF_WRITE_INQUIRY_MODE. How can I > > grant privileges for other users to perform those commands? > > > > The problem is that I have an application that needs to set those > > paramaters, but I don't want to run the application as root. > > the inquiry mode should never be set by an application. It is up to hcid > to pick the best inquiry mode. > > The local name can be set via the D-Bus interface and no root privileges > are needed. > > Regards > > Marcel > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Bluez-users mailing list > Bluez-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-users > ------=_Part_33225_24347492.1164011517499 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi again,

How does hcid know what mode that is "best" for my application? I want to make sure that it is 1 (result with rssi), is there a way I can tell hcid to always choose that mode then?

Also, I would like to have as few external dependencies, so if possible I would prefer to not use d-bus. Is there a way to set the local name without d-bus and without root privileges?

-- Mikael

On 11/19/06, Marcel Holtmann <marcel@holtmann.org> wrote:
Hi Mikael,

> I've noticed that only the superuser may perform some hci commands,
> such as OCF_WRITE_LOCAL_NAME and OCF_WRITE_INQUIRY_MODE. How can I
> grant privileges for other users to perform those commands?
>
> The problem is that I have an application that needs to set those
> paramaters, but I don't want to run the application as root.

the inquiry mode should never be set by an application. It is up to hcid
to pick the best inquiry mode.

The local name can be set via the D-Bus interface and no root privileges
are needed.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

------=_Part_33225_24347492.1164011517499-- --===============0536850405== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV --===============0536850405== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users --===============0536850405==--