Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto loading xt_owner.ko module #108

Closed
GoogleCodeExporter opened this issue Oct 29, 2015 · 13 comments
Closed

auto loading xt_owner.ko module #108

GoogleCodeExporter opened this issue Oct 29, 2015 · 13 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

Thanks a lot.

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant