• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: accessing argv on exec
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accessing argv on exec


  • Subject: Re: accessing argv on exec
  • From: Peter Moody <email@hidden>
  • Date: Thu, 13 Nov 2014 12:23:07 -0800

On Thu, Nov 13 2014 at 01:33, Quinn \"The Eskimo!\" wrote:

> No it is not.  The kernel does not keep a copy of the arguments passed to the process.

Hey Quinn,

So is there a way to get access to the process' memory from a kext (eg,
reading p->user_stack seems like it would get me what I want)?

Or is the suggested approach to use a userland daemon with kqueue()
listener listing for NOTE_EXEC and then use libproc or sysctl
KERN_PROCARGS to access argv?

I 'spose I'll go try to hack this up.

 Cheers,
 peter
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >accessing argv on exec (From: James C <email@hidden>)
 >Re: accessing argv on exec (From: "Quinn \"The Eskimo!\"" <email@hidden>)

  • Prev by Date: Re: accessing argv on exec
  • Previous by thread: Re: accessing argv on exec
  • Next by thread: KPI: socket filter’s sf_data_in not called for data over IPSec VPN
  • Index(es):
    • Date
    • Thread