Re: [android-kernel] IPC between User space and kernel

2011-06-19 Thread fan zhang
If use proc, how to ensure that only privilege user (i.e. root or net_admin) could communicate with kernel. As I know, any user app could read/write via proc. Thanks Fan On Fri, Jun 17, 2011 at 7:51 PM, Peter Teoh wrote: > checkout sysctl: > > http://www.google.com/search?q=sysctl+android

Re: [android-kernel] IPC between User space and kernel

2011-06-17 Thread Peter Teoh
One more example: http://groups.google.com/group/android-ndk/browse_thread/thread/8a916e5ec751d3fd On Sat, Jun 18, 2011 at 8:58 AM, Peter Teoh wrote: > See these for netlink usage (from userspace) to facilitate communication > with kernel: > > > http://www.netmite.com/android/mydroid/external/b

Re: [android-kernel] IPC between User space and kernel

2011-06-17 Thread Peter Teoh
See these for netlink usage (from userspace) to facilitate communication with kernel: http://www.netmite.com/android/mydroid/external/bluez/utils/plugins/netlink.c http://blog.csdn.net/m346759541/archive/2011/01/12/6131220.aspx And this is the kernel component: http://www.netmite.com/android/myd

Re: [android-kernel] IPC between User space and kernel

2011-06-17 Thread Peter Teoh
checkout sysctl: http://www.google.com/search?q=sysctl+android For example, inside /etc/sysctl.conf, enter arp_filter entry: net.ipv4.conf.all.arp_filter=1 Or you can configure it via command line with: echo 1 > /proc/sys/net/ipv4/conf/all

Re: [android-kernel] IPC between User space and kernel

2011-06-17 Thread fan zhang
Is it possible to use proc that not requires user app having root/net admin. Could you compare proc, netlink and new virtual fs? Thanks Fan On Fri, Jun 17, 2011 at 12:27 PM, Pavan Savoy wrote: > On Fri, Jun 17, 2011 at 9:13 AM, fan zhang wrote: > > We developed an Android service and a

Re: [android-kernel] IPC between User space and kernel

2011-06-17 Thread Pavan Savoy
On Fri, Jun 17, 2011 at 9:13 AM, fan zhang wrote: > We developed an Android service and a kernel module.  Android service > and the Kernel module need to exchange data with each other. > > > Following are the requirements for the IPC between user space and > Kernel. > > 1. The communication should

[android-kernel] IPC between User space and kernel

2011-06-17 Thread fan zhang
We developed an Android service and a kernel module. Android service and the Kernel module need to exchange data with each other. Following are the requirements for the IPC between user space and Kernel. 1. The communication should be secure. No authorized apps could not talk to that Kernel mod