diff options
author | Steinar H. Gunderson <sesse@google.com> | 2009-04-15 15:01:33 +0200 |
---|---|---|
committer | Arve Hjønnevåg <arve@android.com> | 2009-04-15 14:47:30 -0700 |
commit | 0bdcd41c3693827df10ec24d04f37db3ec04c571 (patch) | |
tree | de1752cb5c78293e0a0e6176b708e5f268dd014b /net | |
parent | 3a218ab75fae6fbb7b91d744eab2aab6a3946a6e (diff) |
net: Fix compilation of the IPv6 module
Fix compilation of the IPv6 module -- current->euid does not exist anymore,
current_euid() is what needs to be used.
Signed-off-by: Steinar H. Gunderson <sesse@google.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/af_inet6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index c30f24bf2ccd..a52060d9ea72 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c @@ -90,7 +90,7 @@ static __inline__ struct ipv6_pinfo *inet6_sk_generic(struct sock *sk) #ifdef CONFIG_ANDROID_PARANOID_NETWORK static inline int current_has_network(void) { - return (!current->euid || in_egroup_p(AID_INET) || + return (!current_euid() || in_egroup_p(AID_INET) || in_egroup_p(AID_NET_RAW)); } static inline int current_has_cap(int cap) |