• 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: How to become root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to become root


  • Subject: Re: How to become root
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Fri, 16 Mar 2012 13:17:37 +0100

Le 16 mars 2012 à 12:33, Gerriet M. Denkmann a écrit :

> I have an app which needs to do (among other things) to call task_for_pid() which seems to work only for root.
>
> The modern way to  do this is have a small companion tool which exchanges info with my app via XPC. Correct?
>
> I am also thinking about sandboxing (just as a learning experience). Or is root and sandboxing mutually exclusive?
>
> Then: how to make my companion tool run as root?
> Is there a sandboxing entitlement like: com.apple.security.rootAllowed?
> If not: what else to use?
>


The short answer is don't expect to use task_for_pid with sandboxing. This function is restricted for good reasons.

What are you trying to do that require to get an other process mach port ?


-- Jean-Daniel





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: How to become root
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >How to become root (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: How to become root
  • Next by Date: Re: How to become root
  • Previous by thread: How to become root
  • Next by thread: Re: How to become root
  • Index(es):
    • Date
    • Thread