diff options
author | JP Abgrall <jpa@google.com> | 2013-02-20 17:39:53 -0800 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2013-07-01 14:16:21 -0700 |
commit | 2b6cc26b6b84fa02e49c9440737835428740e272 (patch) | |
tree | 5035e5fe427526ae4c0cd5130f16bcfc0ad05fce /net | |
parent | 2d54003046ef0435fc1e85329ea5a34da22b8ab3 (diff) |
net: bluetooth: Remove the AID_NET_BT* gid numbers
Removed bluetooth checks for AID_NET_BT and AID_NET_BT_ADMIN
which are not useful anymore.
This is in preparation for getting rid of all the AID_* gids.
Signed-off-by: JP Abgrall <jpa@google.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/af_bluetooth.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c index bd8a56d097d..a44c12c2de4 100644 --- a/net/bluetooth/af_bluetooth.c +++ b/net/bluetooth/af_bluetooth.c @@ -30,10 +30,6 @@ #include <net/bluetooth/bluetooth.h> #include <linux/proc_fs.h> -#ifdef CONFIG_ANDROID_PARANOID_NETWORK -#include <linux/android_aid.h> -#endif - #ifndef CONFIG_BT_SOCK_DEBUG #undef BT_DBG #define BT_DBG(D...) @@ -112,15 +108,15 @@ void bt_sock_unregister(int proto) } EXPORT_SYMBOL(bt_sock_unregister); -#ifdef CONFIG_ANDROID_PARANOID_NETWORK +#ifdef CONFIG_PARANOID_NETWORK static inline int current_has_bt_admin(void) { - return (!current_euid() || in_egroup_p(AID_NET_BT_ADMIN)); + return !current_euid(); } static inline int current_has_bt(void) { - return (current_has_bt_admin() || in_egroup_p(AID_NET_BT)); + return current_has_bt_admin(); } # else static inline int current_has_bt_admin(void) |