diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-03-14 22:27:58 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-03-15 03:56:00 -0400 |
commit | 50ebc055fa758c731e6e1ce174608327aab07aec (patch) | |
tree | 6e79c470d978949a9af37a4fa317802d63821761 /include/net/bluetooth | |
parent | 96f1474af040a4ec267efe141cbf264891e67e5a (diff) |
Bluetooth: Introduce trusted flag for management control sockets
Providing a global trusted flag for management control sockets provides
an easy way for identifying sockets and imposing restriction on it. For
now all management sockets are trusted since they require CAP_NET_ADMIN.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/hci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index b8318711135a..7a24acaafeea 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h | |||
@@ -181,6 +181,7 @@ enum { | |||
181 | 181 | ||
182 | /* HCI socket flags */ | 182 | /* HCI socket flags */ |
183 | enum { | 183 | enum { |
184 | HCI_SOCK_TRUSTED, | ||
184 | HCI_MGMT_INDEX_EVENTS, | 185 | HCI_MGMT_INDEX_EVENTS, |
185 | HCI_MGMT_UNCONF_INDEX_EVENTS, | 186 | HCI_MGMT_UNCONF_INDEX_EVENTS, |
186 | HCI_MGMT_EXT_INDEX_EVENTS, | 187 | HCI_MGMT_EXT_INDEX_EVENTS, |