From owner-freebsd-bluetooth@FreeBSD.ORG Fri Oct 31 16:53:01 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 F0743106567D for ; Fri, 31 Oct 2008 16:53:01 +0000 (UTC) (envelope-from samm@os2.kiev.ua) Received: from deepvision.tsua.net (s2.sdv.com.ua [212.40.43.22]) by mx1.freebsd.org (Postfix) with ESMTP id A5E718FC20 for ; Fri, 31 Oct 2008 16:53:01 +0000 (UTC) (envelope-from samm@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 1KvwvN-0009iq-39 for freebsd-bluetooth@freebsd.org; Fri, 31 Oct 2008 18:32:37 +0200 Message-ID: <490B331F.6020305@os2.kiev.ua> Date: Fri, 31 Oct 2008 17:32:31 +0100 From: Alex Samorukov User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: freebsd-bluetooth@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Fri, 31 Oct 2008 16:53:02 -0000 Hi all I ported to FreeBSD anyRemote utility (http://anyremote.sourceforge.net/), and while porting I got some issues which i`m not able to resolve myself. They are not critical (program is working), but a bit annoying. 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? 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? I`m planning to submit my patches to the ports tree at nearest time. From owner-freebsd-bluetooth@FreeBSD.ORG Fri Oct 31 17:40:38 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 93B6F1065686 for ; Fri, 31 Oct 2008 17:40:38 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 88F2F8FC1F for ; Fri, 31 Oct 2008 17:40:36 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so624116nfh.33 for ; Fri, 31 Oct 2008 10:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=8v/ekjJaj6mWVMrC00z65BHd7dFuzKOzTsjKMDrTI44=; b=CzBZBgs7MCwj+amG8A5tC6ttVtLcoGFf5wm8CRiGbZAoiPnssHAwzwjArKv0LzFFwi qHsLKDtyhSTSaUNo5gu654+v4c2RJs/e+v543DZogwKvXv79YZgLhEpPwusgJvHaR/7d ncMP6numAUJmOWDXDjkTcpR8RszoQD9TvSQPQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ToWkM9qbAnQVbWAS6MYFAE18MFUfj3yocuXFdSCR3CElVY1oWwu83fBPF5NX3GcQNu nis+4lo6Sx/jjwWK9xv2vHe60Mh7kWEI6TmDIYA5LtprUh/+ymg4UGPdpFJMeGFuxXFb f7LPwjS3mpbetJIvlyshJa2XYcCHlLOPIfkIA= Received: by 10.86.89.1 with SMTP id m1mr8466169fgb.66.1225474232378; Fri, 31 Oct 2008 10:30:32 -0700 (PDT) Received: by 10.86.9.3 with HTTP; Fri, 31 Oct 2008 10:30:32 -0700 (PDT) Message-ID: Date: Fri, 31 Oct 2008 10:30:32 -0700 From: "Maksim Yevmenkin" To: "Alex Samorukov" In-Reply-To: <490B331F.6020305@os2.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <490B331F.6020305@os2.kiev.ua> 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: Fri, 31 Oct 2008 17:40:39 -0000 Alex, > 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). > 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. > I`m planning to submit my patches to the ports tree at nearest time. thanks for your work. thanks, max 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.