Re: copy some kernel extensions to /tmp directory and then load that kext when program Launches
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=GfIoyzMfmdwGGDNZ0ktOni3RVPbZYSpn1I15PqCZ3d0=; b=GM764GAup55fmIIUkJwi4Ly03GkVYysqHLtqGzYVF8FQiWDssi2bMy/9vdmWyyzI/L u/L1xeZ8WIpUy8g/njgMtOLsft8qIy85vzV9yD3zlRl30QvbQoW90tWKjpVjGWLJcYFd ChfOs5rrzipbFPMDYG3+/sWZAiyKwtDLOf+p4= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=tHnMtGj+QouejfSW4GRWmAGwswQfSVjR3O//nUHEPo1tkA5HZbVPTHMstv/onEK9Y2 psgXKfNRUG65Ecwpaw7W9miPHqX1SatOyoP9HHSDUXydCnW94q9dOwJPPsjVt7bhWBuO oCTZsnK9r0dAFnT9NrR1JHHLWVGnWFZ9rbRjA= Hello, your request is a bit messy, do you load your program at boot? deamon whatever or is it a Cocoa App that needs to work with its kexts ? you can use kextstat to grep your reversed DNS popen NSTask whatever you choose are your friends, but I am not sure my answer fits with your multi spam request sudo kextloader /tmp/kext.kext #!/usr/bin/env bash usage () { echo "Usage: kextdevel [load|unload] kext" exit 1 } if [[ $UID -ne 0 ]]; then echo "System administrator privileges required" exit 1 fi if [ $# != 2 ] ; then usage fi if ! test -d "${2}" ; then usage fi if test "${1}" = "load" ; then chmod 0755 $(find "${2}" -type d) chmod 0644 $(find "${2}" -type f) chown -R root:wheel "${2}" kextload -t "${2}" exit 0 elif test "${1}" = "unload" ; then kextunload "${2}" rm -Rf "${2}" exit 0 else usage fi # EOF Best On Wed, May 27, 2009 at 7:01 AM, Rahulkumar Tibdewal <rahulkumar_tibdewal@persistent.co.in> wrote:
Hi,
I want to copy some kernel extensions to /tmp directory and then load that kext.
This can be done through super user privileges from terminal.
However I want to do this when my application launches.
Does anyone have any idea how can I do this?
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.
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/0xcafefeed%40gmail.com
This email sent to 0xcafefeed@gmail.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
mm w