From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Problem with permissions
Date: Mon, 31 Oct 2005 15:56:09 +0100 [thread overview]
Message-ID: <1130770569.8578.3.camel@blade> (raw)
In-Reply-To: <efa8e58e0510310608s1ef3ddf2h78d11604f4090a31@mail.gmail.com>
Hi Rune,
> I've been googling around the past week trying to figure out a way to do this..
> I am able to run everything as root, but when it comes to regular
> users i'm able to run "hcitool scan" but not "hcitool cc
> XX:XX:XX:XX:XX" or "hciconfig hci0 up" because operation is not
> permitted.
these operation are protected by CAP_NET_RAW and CAP_NET_ADMIN.
> I tried using hotplug to set the permissions on the rfcommX devices,
> without luck. Then i switched to udev i great hope. But the problems
> seems to persist. The rfcommX device nodes never get created with
> udev, I dont know if they should though. Maybe someone has a better
> answer..
You need to use rfcomm to actually bind a TTY. Otherwise they will not
exists and thus not created.
> The reason i'm trying to do this, is i'm using a regular user to
> develop a java application using the jbluez package, which provides
> access to the BlueZ stack. But I am unable to create connections.
The Bluetooth core will create the ACL links for you, so you don't have
to worry about them. Every user can create L2CAP and RFCOMM connections.
> I read something about changing the kernel HCI security filter, but it
> didn't make too much sense to me...
If you wanna different rights then you need to modify this filter.
Regards
Marcel
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
next prev parent reply other threads:[~2005-10-31 14:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-31 14:08 [Bluez-users] Problem with permissions Rune V. Sjøen
2005-10-31 14:56 ` Marcel Holtmann [this message]
2005-10-31 21:23 ` Rune V. Sjøen
2005-11-01 16:22 ` Rune V. Sjøen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1130770569.8578.3.camel@blade \
--to=marcel@holtmann.org \
--cc=bluez-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.