Albrecht Uhlmann
|
Re: how to call a function from a LSM module of io-pkt(.so), the function is defined/implemented in another LSM module io-pkt.
|
Albrecht Uhlmann
04/01/2014 4:18 AM
post109716
|
Re: how to call a function from a LSM module of io-pkt(.so), the function is defined/implemented in another LSM module io-pkt.
Not sure why this is happening but I guess that io-pkt, when it loads a module, it loads only those functions that it
knows of, and leaves all other symbols unresolved.
Maybe you can play around with some ENVVARS to make io-pkt load all symbols. Maybe you can get a handle to module 1
yourself and explicitly load the function you are looking for.
-Albrecht
|
|
|
Michael Tasche
|
Re: how to call a function from a LSM module of io-pkt(.so), the function is defined/implemented in another LSM module io-pkt.
|
Michael Tasche
04/01/2014 8:40 AM
post109723
|
Re: how to call a function from a LSM module of io-pkt(.so), the function is defined/implemented in another LSM module io-pkt.
> Hi,
>
> How to i call a function from a io-pkt LSM module (.so), which is defined/
> implemented in another io-pkt LSM module (.so).
You could search the addresses of the needed funktions in the other LSM. Look at dlopen amd dlsym.
Then you could call them by function-ptr.
If io-pkt loads lsm's with "RTLD_GLOBAL and RTLD_WORLD, your approach should work, as is.
Well, I can't look at the source.
-Michael
|
|
|