Hi Johan, On Thu, Oct 17, 2013 at 02:20:10PM +0300, Johan Hedberg wrote: > Hi Andrei, > > On Thu, Oct 17, 2013, Andrei Emeltchenko wrote: > > The patch set UID as standard Bluetooth user for Android (AID_BLUETOOTH). > > For SDP server we need to bind to lower port, acquire this capability. > > Which POSIX capability is "this capability" exactly? > > > + cap.effective = cap.permitted = > > + CAP_TO_MASK(CAP_SETGID) | > > + CAP_TO_MASK(CAP_NET_RAW) | > > + CAP_TO_MASK(CAP_NET_ADMIN) | > > + CAP_TO_MASK(CAP_NET_BIND_SERVICE); > > I just checked the kernel L2CAP socket code and all it requires for > binding to a low L2CAP PSM (needed e.g. by SDP) is CAP_NET_BIND_SERVICE. > So you'll need to explain what you need these other capabilities for. > Have you checked also Android PARANOID kernel code? Best regards Andrei Emeltchenko -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html