Re: [PATCHv5 1/7] android: Add capabilities and set userid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux