netfilter kernel module questions

111 views
Skip to first unread message

Mihai Campean

unread,
Dec 4, 2009, 9:44:07 AM12/4/09
to Android Linux Kernel Development
Hi all,

As I understood from the few posts available on this group about the
netfilter kernel module, this module is currently not available in the
android kernel. I am a noob to this part of Android so please bear
with me and my questions :).
The first question is where I would find a list of what kernel
version each version of Android uses - I need this to determine which
version of Android might have the netfilter module installed in the
kernel.
The second question is, how would one go about and introduce the
netfilter module in an Android kernel that doesn't have it - if that's
an option.
The reason why I am asking these questions is that, I need to write
an NDK shared library that uses the netfilter hooks for packet
mangling and filtering, or to use the conntrack-tools libraries in
order to provide a packet filtering interface for a firewall.
Any help and guidance would be very much appreciated, thank you.

Have fun,
Mihai

biAji

unread,
Dec 6, 2009, 8:40:18 PM12/6/09
to Android Linux Kernel Development


On Dec 4, 10:44 pm, Mihai Campean <mihai...@gmail.com> wrote:
> Hi all,
>
>   As I understood from the few posts available on this group about the
> netfilter kernel module, this module is currently not available in the
> android kernel. I am a noob to this part of Android so please bear
> with me and my questions :).

Almost all the mod image have provide netfilter module in order to
implement "tether" function.

Certainly, you can not find this module in images released by
HTC...until now.

Mihai Campean

unread,
Dec 7, 2009, 10:34:29 AM12/7/09
to Android Linux Kernel Development
Thanks, can you also please provide me with some sources that contain
this information, or with a method to determine if a certain image has
a certain kernel module installed?

Thanks,
Mihai

3pei

unread,
Dec 5, 2009, 11:39:57 PM12/5/09
to Android Linux Kernel Development
i have same question.

On Dec 4, 10:44 pm, Mihai Campean <mihai...@gmail.com> wrote:

mundou

unread,
Dec 15, 2009, 12:15:49 AM12/15/09
to Android Linux Kernel Development
As far as I know, you can compile your own kernel image with netfilter
module configured on. The default kernel configuration does not have
'netfilter' built-in. You can add it while doing 'menu-config'. In the
kernel source codes there does have netfilter implementations in \net
\netfilter folder.

biAji

unread,
Dec 16, 2009, 9:54:20 PM12/16/09
to Android Linux Kernel Development

On Dec 7, 11:34 pm, Mihai Campean <mihai...@gmail.com> wrote:
> Thanks, can you also please provide me with some sources that contain
> this information, or with a method to determine if a certain image has
> a certain kernel module installed?

try it here http://www.cyanogenmod.com/

And you can use lsmod to find if there is certain module installed.


>
> Thanks,
> Mihai
>
> On Dec 7, 3:40 am, biAji <biaji...@gmail.com> wrote:
>
> > On Dec 4, 10:44 pm, Mihai Campean <mihai...@gmail.com> wrote:
>
> > > Hi all,
>
> > >   As I understood from the few posts available on this group about the

> > >netfilterkernel module, this module is currently not available in the


> > > android kernel. I am a noob to this part of Android so please bear
> > > with me and my questions :).
>

> > Almost all the mod image have providenetfiltermodule in order to

Dan Danciu

unread,
Dec 17, 2009, 5:43:12 AM12/17/09
to Android Linux Kernel Development
Hi,

From what I know lsmod command requires root access.

Is there a programmatic way to find out? And if yes, could it be
available on not rooted phones?

PS: I guess it should be something available in /proc. I will search
further, but any start point would help.

Thanks,
Dan

On Dec 17, 4:54 am, biAji <biaji...@gmail.com> wrote:
> On Dec 7, 11:34 pm, Mihai Campean <mihai...@gmail.com> wrote:
>
> > Thanks, can you also please provide me with some sources that contain
> > this information, or with a method to determine if a certain image has
> > a certain kernel module installed?
>

> try it herehttp://www.cyanogenmod.com/

biAji

unread,
Dec 18, 2009, 2:03:56 AM12/18/09
to Android Linux Kernel Development

On Dec 17, 6:43 pm, Dan Danciu <ddancius...@gmail.com> wrote:
> Hi,
>
> From what I know lsmod command requires root access.
>
> Is there a programmatic way to find out? And if yes, could it be
> available on not rooted phones?

mmm... Sorry for that, I don't think it's possible..@@

Greg KH

unread,
Dec 18, 2009, 9:36:52 AM12/18/09
to android...@googlegroups.com
On Thu, Dec 17, 2009 at 11:03 PM, biAji <biaj...@gmail.com> wrote:
>
>
> On Dec 17, 6:43 pm, Dan Danciu <ddancius...@gmail.com> wrote:
>> Hi,
>>
>> From what I know lsmod command requires root access.

No it does not.

>> Is there a programmatic way to find out? And if yes, could it be
>> available on not rooted phones?

Yes there is, 'cat /proc/modules'

> mmm... Sorry for that, I don't think it's possible..@@

Looks like you didn't try very hard :)

good luck,

greg k-h

Reply all
Reply to author
Forward
0 new messages