#define _LINUX_ANDROID_AID_H
/* AIDs that the kernel treats differently */
-#define AID_NET_BT_ADMIN 3001
-#define AID_NET_BT 3002
+#define AID_OBSOLETE_000 3001 /* was NET_BT_ADMIN */
+#define AID_OBSOLETE_001 3002 /* was NET_BT */
#define AID_INET 3003
#define AID_NET_RAW 3004
#define AID_NET_ADMIN 3005
#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...)
}
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)