FW: copy some kernel extensions to /tmp directory and then load that kext when program Launches
FW: copy some kernel extensions to /tmp directory and then load that kext when program Launches
- Subject: FW: copy some kernel extensions to /tmp directory and then load that kext when program Launches
- From: Rahulkumar Tibdewal <email@hidden>
- Date: Thu, 28 May 2009 18:10:29 +0530
- Acceptlanguage: en-US, en-IN
- Thread-topic: copy some kernel extensions to /tmp directory and then load that kext when program Launches
Hi,
> but I don't understand why you don't let the kexts into your app
> bundle and then execute from CFBundle Resources directory your
> pre-flight script using standard C functions
= I tried this but it faills to load and gives following error.
Error loading /Users/rahul/Desktop/MacResearch/InternetBlock/TcpFilter/trunk/build/Debug/TcpFilter.kext/Contents/MacOS/TcpFilter: dlopen(/Users/rahul/Desktop/MacResearch/InternetBlock/TcpFilter/trunk/build/Debug/TcpFilter.kext/Contents/MacOS/TcpFilter, 262): no suitable image found. Did find: /Users/rahul/Desktop/MacResearch/InternetBlock/TcpFilter/trunk/build/Debug/TcpFilter.kext/Contents/MacOS/TcpFilter: can't map
> you can do whatever you want imagine you have your GUI app in
> awakeFromNib just execute the load using popen on a pre-flight,
= I would love to do that. But problem is I am able to load TcpFilter.kext from /tmp only.
sh-3.2$ sudo kextload -v /Users/rahul/Desktop/MacResearch/InternetBlock/TcpFilter/trunk/build/Release/TcpFilter.kext
extension /Users/rahul/Desktop/MacResearch/InternetBlock/TcpFilter/trunk/build/Release/TcpFilter.kext has potential problems:
Warnings
{
"Kext has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style" = true
}
kextload: extension /Users/rahul/Desktop/MacResearch/InternetBlock/TcpFilter/trunk/build/Release/TcpFilter.kext appears to be loadable
kextload: loading extension /Users/rahul/Desktop/MacResearch/InternetBlock/TcpFilter/trunk/build/Release/TcpFilter.kext
kextload: extension /Users/rahul/Desktop/MacResearch/InternetBlock/TcpFilter/trunk/build/Release/TcpFilter.kext is not authentic (check ownership and permissions; run with -t for details)
> second option create a deamon script loader/unloader using launchd, I
> don't understand what's your problem anyway
I also used launchd. It also ask for password. Can see it on console. So, this dont load TcpFilter.kext
This thing is really frustrating. Please help.
I also attached plist of TcpFilter.kext. May be that can give u clue to help me.
Thanks
Rahul
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
Attachment:
Info.plist
Description: Info.plist
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden