summaryrefslogtreecommitdiff
path: root/android/main.c
diff options
context:
space:
mode:
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>2013-11-29 16:20:45 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-11-29 17:10:19 +0200
commit3fa4e17b2e453bec804ad72dc7a9b91bb8136e9e (patch)
tree195c41ea784d01305a30eee3e2e0c51ca1b6a259 /android/main.c
parentcd57b8b7e0ccabb53f34332412bcb5ce3a05c475 (diff)
downloadbluez-3fa4e17b2e453bec804ad72dc7a9b91bb8136e9e.tar.gz
android: Add reasons for adding capabilites to process
CAP_NET_ADMIN: Allow use of MGMT interface CAP_NET_BIND_SERVICE: Allow use of privileged PSM CAP_NET_RAW: Allow use of bnep ioctl calls
Diffstat (limited to 'android/main.c')
-rw-r--r--android/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/android/main.c b/android/main.c
index 3a14af595..eedca58d5 100644
--- a/android/main.c
+++ b/android/main.c
@@ -534,6 +534,9 @@ static bool set_capabilities(void)
header.version = _LINUX_CAPABILITY_VERSION;
header.pid = 0;
+ /* CAP_NET_ADMIN: Allow use of MGMT interface
+ * CAP_NET_BIND_SERVICE: Allow use of privileged PSM
+ * CAP_NET_RAW: Allow use of bnep ioctl calls */
cap.effective = cap.permitted =
CAP_TO_MASK(CAP_NET_RAW) |
CAP_TO_MASK(CAP_NET_ADMIN) |