diff options
| author | 2019-06-24 19:10:18 -0700 | |
|---|---|---|
| committer | 2019-06-24 19:10:18 -0700 | |
| commit | 0208ab35024dd7adb8d64355e512fb259d0b8b7a (patch) | |
| tree | 6c0ac49ade1aa30007a76b37f9a053e82389b11c | |
| parent | 6245e7efe6448938a4ccf1383f92d29c92886207 (diff) | |
| parent | 867956b55c1868857ffcc9bca9bfa9b5549aba0f (diff) | |
Merge "BT: Add CAP_NET_ADMIN for Bluetooth Process"
am: 867956b55c
Change-Id: Ie4f55248aeadf226e52003c5a5dd5b3443f38d45
| -rw-r--r-- | core/jni/com_android_internal_os_Zygote.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/jni/com_android_internal_os_Zygote.cpp b/core/jni/com_android_internal_os_Zygote.cpp index 04d270676566..7e3b343f6f63 100644 --- a/core/jni/com_android_internal_os_Zygote.cpp +++ b/core/jni/com_android_internal_os_Zygote.cpp @@ -1099,6 +1099,7 @@ static jlong CalculateCapabilities(JNIEnv* env, jint uid, jint gid, jintArray gi /* * Grant the following capabilities to the Bluetooth user: * - CAP_WAKE_ALARM + * - CAP_NET_ADMIN * - CAP_NET_RAW * - CAP_NET_BIND_SERVICE (for DHCP client functionality) * - CAP_SYS_NICE (for setting RT priority for audio-related threads) @@ -1106,6 +1107,7 @@ static jlong CalculateCapabilities(JNIEnv* env, jint uid, jint gid, jintArray gi if (multiuser_get_app_id(uid) == AID_BLUETOOTH) { capabilities |= (1LL << CAP_WAKE_ALARM); + capabilities |= (1LL << CAP_NET_ADMIN); capabilities |= (1LL << CAP_NET_RAW); capabilities |= (1LL << CAP_NET_BIND_SERVICE); capabilities |= (1LL << CAP_SYS_NICE); |