bluetooth: Lock down creation of AF_BLUETOOTH sockets.
commita939d5f60fc077910d01b7b1c0a3b8dd501324a0
authorNick Pelly <npelly@google.com>
Fri, 4 Jul 2008 15:27:39 +0000 (4 08:27 -0700)
committerBrian Swetland <swetland@google.com>
Fri, 4 Jul 2008 16:01:43 +0000 (4 09:01 -0700)
tree548f0db5d5790f0fdb1f273d95f75c196525d0e3
parentcbc30514ea25fd2710fb2fa21791ea0ed8c436ca
bluetooth: Lock down creation of AF_BLUETOOTH sockets.

Only root or processes with gid AID_NET_BT or AID_NET_BT_ADMIN
can create RFCOMM, SCO and L2CAP sockets.

Only root or process with gid AID_NET_BT_ADMIN can open other
AF_BLUETOOTH sockets (for example HCI).

This required introducing android_aid.h with the hardcoded
android id's.

Signed-off-by: Brian Swetland <swetland@google.com>
drivers/android/Kconfig
include/linux/android_aid.h [new file with mode: 0644]
net/bluetooth/af_bluetooth.c