Return-Path: From: Ravi kumar Veeramally To: linux-bluetooth@vger.kernel.org Cc: Ravi kumar Veeramally Subject: [PATCH_v5 6/6] android: Add reasons for adding capabilites to process Date: Fri, 29 Nov 2013 16:20:45 +0200 Message-Id: <1385734845-9725-7-git-send-email-ravikumar.veeramally@linux.intel.com> In-Reply-To: <1385734845-9725-1-git-send-email-ravikumar.veeramally@linux.intel.com> References: <1385734845-9725-1-git-send-email-ravikumar.veeramally@linux.intel.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: 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 3a14af5..eedca58 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) | -- 1.8.3.2