From owner-freebsd-bluetooth@FreeBSD.ORG Sat Nov 1 20:30:00 2008 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6410A1065675 for ; Sat, 1 Nov 2008 20:30:00 +0000 (UTC) (envelope-from ml@os2.kiev.ua) Received: from deepvision.tsua.net (s2.sdv.com.ua [212.40.43.22]) by mx1.freebsd.org (Postfix) with ESMTP id 16DAE8FC0C for ; Sat, 1 Nov 2008 20:29:59 +0000 (UTC) (envelope-from ml@os2.kiev.ua) Received: from 134-170-195-217.cust.centrio.cz ([217.195.170.134] helo=[192.168.100.104]) by deepvision.tsua.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1KwMjA-000NSL-AR; Sat, 01 Nov 2008 22:05:44 +0200 Message-ID: <490CB692.6040303@os2.kiev.ua> Date: Sat, 01 Nov 2008 21:05:38 +0100 From: Alex Samorukov User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Maksim Yevmenkin References: <490B331F.6020305@os2.kiev.ua> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bluetooth@freebsd.org Subject: Re: bt dev questions X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2008 20:30:00 -0000 Maksim Yevmenkin wrote: > >> 1) Why sdpd require root permission to open session? As for me it`s enough >> to check use file permissions on control socket. In Linux its possible to >> register service w/o root permissions, so in ported version I need to run it >> as root and then setuid to normal user. What is the reason for this? >> > > to have better control over what services are offered. basically, i do > not want to have any random application go and register bunch of > non-existent services. requiring 'root' permission is may be a little > bit excessive, but its easy to fix. could teach sdpd to accept > connections from specified group (or even list of groups/users). > > Yes, i think that its enough to have group, with sdpd r/w permission. Because I don`t like setgid/setuid, and this will allow to avoid this in bt services. >> 2) I was not able to find how to change provider name and server >> description in SDP_SERVICE_CLASS_SERIAL_PORT profile. anyRemote using usual >> serial over bluetooth, but with changed service name field. I found howto >> change channel (server_channel) but not description. Is it possible at all? >> > > not at this time. > > ok, np ) >> I`m planning to submit my patches to the ports tree at nearest time. >> > > thanks for your work. > Thank you too. Author answered that he will include my patches to the next version, so soon anyRemote will work in freebsd out of the box.