On Thu, 2012-04-19 at 11:17 +0100, Jon Medhurst (Tixy) wrote: > On Thu, 2012-04-19 at 10:22 +0100, Jon Medhurst (Tixy) wrote: > > On Thu, 2012-04-19 at 00:22 +0400, Andrey Konovalov wrote: > > > Greetings, > > > > > > I updated (overwrote) the current linux-linaro tree > > > (git://git.linaro.org/kernel/linux-linaro-tracking.git , linux-linaro > > > branch). > > > > That builds OK for vexpress and boots Ubuntu. I also kicked off an > > Android build [1] > > > > Actually, it has a problem. Firefox can't resolve names or access the > network, though ping from the command-line forks (and can resolve domain > names.) > > I also note in syslog that avahi-daemon can't start [1] > > I'm pretty certain Firefox worked in the previous version of > linux-linaro I tested a couple of days ago. Perhaps the Android topic > has broken networking on Ubuntu.
This problem is due to CONFIG_ANDROID_PARANOID_NETWORK being enabled in Ubuntu as it defaults to 'y'. Editing configs/ubuntu.conf to add: # CONFIG_ANDROID_PARANOID_NETWORK is not set fixes the networking problem (after also fixing a compile error [1]) I note that some other Android configs default to 'y'... CONFIG_HAS_WAKELOCK CONFIG_WAKELOCK CONFIG_USER_WAKELOCK CONFIG_NET_ACTIVITY_STATS should we play safe and also disable these in Ubuntu? Alternatively, it would be nicer if all of these defaulted 'n' and we got the Android config to enable them. (But that would mean carrying patches to AOSP code I guess.) -- Tixy [1] diff --git a/security/commoncap.c b/security/commoncap.c index 5cbb55e..ec7ac17 100644 --- a/security/commoncap.c +++ b/security/commoncap.c @@ -79,10 +79,12 @@ int cap_netlink_send(struct sock *sk, struct sk_buff *skb) int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, int cap, int audit) { +#ifdef CONFIG_ANDROID_PARANOID_NETWORK if (cap == CAP_NET_RAW && in_egroup_p(AID_NET_RAW)) return 0; if (cap == CAP_NET_ADMIN && in_egroup_p(AID_NET_ADMIN)) return 0; +#endif for (;;) { /* The creator of the user namespace has all caps. */ _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev