Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2020 04:00:55 +0000 (UTC)
From:      Takanori Watanabe <takawata@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r362825 - head/sys/netgraph/bluetooth/socket
Message-ID:  <202007010400.06140tZb063881@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: takawata
Date: Wed Jul  1 04:00:54 2020
New Revision: 362825
URL: https://svnweb.freebsd.org/changeset/base/362825

Log:
  Allow some Bluetooth LE related HCI request to non-root user.
  
  PR:	247588
  Reported by:	Greg V (greg@unrelenting.technology)
  Reviewed by:	emax
  Differential Revision:	https://reviews.freebsd.org/D25516

Modified:
  head/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c

Modified: head/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c
==============================================================================
--- head/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c	Wed Jul  1 02:32:41 2020	(r362824)
+++ head/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c	Wed Jul  1 04:00:54 2020	(r362825)
@@ -861,6 +861,7 @@ ng_btsocket_hci_raw_init(void)
 	bit_set(f, NG_HCI_OCF_READ_IAC_LAP - 1);
 	bit_set(f, NG_HCI_OCF_READ_PAGE_SCAN_PERIOD - 1);
 	bit_set(f, NG_HCI_OCF_READ_PAGE_SCAN - 1);
+	bit_set(f, NG_HCI_OCF_READ_LE_HOST_SUPPORTED -1);
 
 	/* Commands - Informational */
 	f = ng_btsocket_hci_raw_sec_filter->commands[NG_HCI_OGF_INFO - 1];
@@ -881,6 +882,11 @@ ng_btsocket_hci_raw_init(void)
 	bit_set(f, NG_HCI_OCF_READ_LOOPBACK_MODE - 1);
 	/*Commands - LE*/
 	f = ng_btsocket_hci_raw_sec_filter->commands[NG_HCI_OGF_LE -1];
+	bit_set(f, NG_HCI_OCF_LE_SET_SCAN_ENABLE - 1);
+	bit_set(f, NG_HCI_OCF_LE_SET_SCAN_PARAMETERS - 1);
+	bit_set(f, NG_HCI_OCF_LE_READ_LOCAL_SUPPORTED_FEATURES - 1);
+	bit_set(f, NG_HCI_OCF_LE_READ_BUFFER_SIZE - 1);
+	bit_set(f, NG_HCI_OCF_LE_READ_WHITE_LIST_SIZE - 1);
 
 } /* ng_btsocket_hci_raw_init */
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007010400.06140tZb063881>