On Tuesday, August 9, 2011 5:22:25 AM UTC-4, patrick Immling wrote: > > where exactly is this patched call on socket? > > Somewhere in this forum I found it said on af_inet.c > > But I dont find this file in any of my sources... :( >
http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD 120<http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD#l120>#ifdef CONFIG_ANDROID_PARANOID_NETWORK 121<http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD#l121>#include <linux/android_aid.h> 122<http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD#l122> 123<http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD#l123>static inline int current_has_network(void) 124<http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD#l124>{ 125<http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD#l125> return in_egroup_p(AID_INET) || capable(CAP_NET_RAW); 126<http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD#l126>} 127<http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD#l127>#else 128<http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD#l128>static inline int current_has_network(void) 129<http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD#l129>{ 130<http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD#l130> return 1; 131<http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD#l131>} 132<http://android.git.kernel.org/?p=kernel/common.git;a=blob;f=net/ipv4/af_inet.c;h=cefdfddc898a831b3b5255b636fabcba5d8e4c42;hb=HEAD#l132>#endif There's something comparable for ipv6 too. IIRC a default checkout no longer includes kernel source, you have to explicitly request it. -- You received this message because you are subscribed to the Google Groups "Android Security Discussions" group. To view this discussion on the web visit https://groups.google.com/d/msg/android-security-discuss/-/O8PbfZG9y6cJ. To post to this group, send email to android-security-discuss@googlegroups.com. To unsubscribe from this group, send email to android-security-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/android-security-discuss?hl=en.