Page MenuHomeFreeBSD

Allow some Bluetooth LE related HCI request by non-root user.
ClosedPublic

Authored by takawata on Tue, Jun 30, 4:24 AM.

Details

Summary

Now Bluetooth LE related requests are not allowed by non-root user.
This patch allow request as follows:
NG_HCI_OCF_READ_LE_HOST_SUPPORTED
NG_HCI_OCF_LE_SET_SCAN_ENABLE
NG_HCI_OCF_LE_SET_SCAN_PARAMETERS
NG_HCI_OCF_LE_READ_LOCAL_SUPPORTED_FEATURES
NG_HCI_OCF_LE_READ_BUFFER_SIZE
NG_HCI_OCF_LE_READ_WHITE_LIST_SIZE

Test Plan

% hccontrol read_le_host_support
% hccontrol le_set_scan_enable enable
% hccontrol le_set_scan_enable disable
% hccontrol le_read_local_supported features
% hccontrol le_read_buffer_size
% hccontrol le_read_white_list_size

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

takawata created this revision.Tue, Jun 30, 4:24 AM
takawata requested review of this revision.Tue, Jun 30, 4:24 AM

From the netgraph part, there is no objection.

emax accepted this revision.Tue, Jun 30, 5:20 PM
This revision is now accepted and ready to land.Tue, Jun 30, 5:20 PM
This revision was automatically updated to reflect the committed changes.