Bluetooth: Require CAP_NET_ADMIN for HCI User Channel operation
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/1 Bluetooth: Require CAP_NET_ADMIN for HCI User Channel operation
The HCI User Channel operation is an admin operation that puts the device into promiscuous mode for single use. It is more suitable to require CAP_NET_ADMIN than CAP_NET_RAW.
Signed-off-by Marcel Holtmann <[email protected]>
--- net/bluetooth/hci_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/hci_sock.c +1 -1
@@ -687,7 +687,7 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr, goto done; } -if (!capable (CAP_NET_RAW )) { +if (!capable (CAP_NET_ADMIN )) { err = -EPERM ; goto done; }
Signature · 1 line
1.8.3.1
Johan Hedberg
AppliedHi Marcel,
Quoted 8 lines · Marcel Holtmann
The HCI User Channel operation is an admin operation that puts the device into promiscuous mode for single use. It is more suitable to require
CAP_NET_ADMINthanCAP_NET_RAW.Signed-off-by Marcel Holtmann <[email protected]>--- net/bluetooth/hci_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to bluetooth-next. Thanks.
Johan