• 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: Processes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Processes


  • Subject: Re: Processes
  • From: Eric Long <email@hidden>
  • Date: Thu, 14 Apr 2005 08:55:46 -0700

> I forget the exact details, but it's something to do with getting the
> group-leader pid I think. The log-in session will be a group leader.
> You need to find which one is at the "console" (not THAT console) and
> which ones are remote logins.
>
> Start by having a look at man page for "ps" - I think that will explain
> most of it.

Thanks.

Actually, this turned out to be much simpler to deal with than I was making
it out to be.  I got it stuck in my head that I had to identify a
SecuritySessionId.  But for the particular need I have, in this case, I can
just look at a process's kinfo_procP->kp_eproc.e_pcred.p_ruid to see if it
matches the current user.


Eric



 _______________________________________________
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: 
 >Re: Processes (From: Peter Lovell <email@hidden>)

  • Prev by Date: Disk Image Plugin
  • Next by Date: Etiquette Reminder!
  • Previous by thread: Re: Processes
  • Next by thread: Disk Image Plugin
  • Index(es):
    • Date
    • Thread