xindervella / droidwall

Automatically exported from code.google.com/p/droidwall
0 stars 0 forks source link

auto loading xt_owner.ko module #108

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Many of as has "xt_owner.ko" compiled as a module,

¿Can you add this command to the "droidwall.sh" script on order to load the 
module?

    modprobe xt_owner

Original issue reported on code.google.com by alberto....@gmail.com on 5 Mar 2011 at 10:25

GoogleCodeExporter commented 8 years ago
Weird... this shouldn't be necessary since iptables automatically loads the 
necessary modules on-demand.

Does executing "modprobe xt_owner" makes DroidWall work for you? Thanks.

Original comment by rodrigo...@gmail.com on 6 Mar 2011 at 7:33

GoogleCodeExporter commented 8 years ago
I haven't modprobe on my stock wildfire, but I have insmod
{{{# insmod xt_owner.ko
insmod: can't open 'xt_owner.ko'}}}

Any chance to push a crosscompiled version of that module?
Like we already do with iptables but probably any device will need yours

Original comment by laurento...@gmail.com on 8 Mar 2011 at 12:37

GoogleCodeExporter commented 8 years ago
This is unfortunately not possible.
The kernel validates the object's "magic cookie" before loading it. This means 
that in order to load a kernel object it must be compiled specifically for your 
kernel.

Original comment by rodrigo...@gmail.com on 8 Mar 2011 at 2:38

GoogleCodeExporter commented 8 years ago
Sorry for the delay.

I have a HTC Hero with Android 2.1.
The stock kernel doesn't supply "xt_owner" module so I compile it by myself, of 
course with the right Versionmagic 2.6.29-063c4d24.

The module "xt_owner", copied to /system/lib/modules is not auto loaded by the 
kernel because wasn't compiled together, instead I need lo load with "modprobe 
xt_owner" command.

Original comment by alberto....@gmail.com on 8 Mar 2011 at 3:08

GoogleCodeExporter commented 8 years ago
Oh, now that makes sense!
I want to implement support for custom scripts soon, so you will be able to do 
anything you want (including loading extra modules) ;)

Original comment by rodrigo...@gmail.com on 8 Mar 2011 at 3:15

GoogleCodeExporter commented 8 years ago
Thanks a lot.

Original comment by alberto....@gmail.com on 8 Mar 2011 at 3:23

GoogleCodeExporter commented 8 years ago
Is that "magic cookie" related to a spefific kernel compilation?
I mean if I find the same kernel version source code is there any hope to get 
it working or I simply need to keep my eyes on issue #112 ? :)

Original comment by laurento...@gmail.com on 8 Mar 2011 at 4:22

GoogleCodeExporter commented 8 years ago
alberto can you tell me more on your solution?
I want to do the same with my HTC Wildfire with stock ROM, have you used a 
vanilla kernel or any sources released by HTC? Any specific .config setting?

Original comment by laurento...@gmail.com on 8 Mar 2011 at 4:31

GoogleCodeExporter commented 8 years ago
Laurento,

This is for Hero but for Wildfire can be similar:

http://android.modaco.com/content/htc-hero-hero-modaco-com/313133/howto-compilin
g-tun-tap-driver-for-htc-hero/

The attachments are for kernel 2.6.29-063c4d24

Original comment by alberto....@gmail.com on 8 Mar 2011 at 7:08

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the reply :)

I successfully compiled the module in the afternoon... I'm going to wait for 
tomorrow to test it. I hope all works ;)

Original comment by laurento...@gmail.com on 8 Mar 2011 at 10:07

GoogleCodeExporter commented 8 years ago
It works like a charm ;)

So now we only need to automatically run "insmod" when driodwall starts and we 
can finally change that xt_owner related faq ;)

Original comment by laurento...@gmail.com on 9 Mar 2011 at 10:03

GoogleCodeExporter commented 8 years ago
Because I really need to use droidwall I made a *worsforme-really-bad-hack* 
patch to autoload xt_owner module if needed.
I don't want to mess with system files, so I placed the module under 
/sdcard/xt_owner.ko

Original comment by laurento...@gmail.com on 9 Mar 2011 at 11:59

Attachments:

GoogleCodeExporter commented 8 years ago
Hello all, I have just added a functionality called "Custom Script" on r210.
This will be officially released on the next version (DroidWall 1.5.3).

I will add more information about CustomScripts in the wiki.

Original comment by rodrigo...@gmail.com on 23 Sep 2011 at 7:10