From 3fa4e17b2e453bec804ad72dc7a9b91bb8136e9e Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Fri, 29 Nov 2013 16:20:45 +0200 Subject: [PATCH] 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 --- android/main.c | 3 +++ 1 file changed, 3 insertions(+) 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) | -- 2.47.3