• 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: Reading data from the pipe in AuthorizationExecuteWithPrivileges() ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading data from the pipe in AuthorizationExecuteWithPrivileges() ??


  • Subject: Re: Reading data from the pipe in AuthorizationExecuteWithPrivileges() ??
  • From: Manfred Bergmann <email@hidden>
  • Date: Wed, 5 Oct 2005 13:59:57 +1000


Am 05.10.2005 um 13:38 schrieb Mark Williams:

Well this doesn't seem to make a difference either. I'm still getting nothing in the dittoOut file. I tried doing /bin/sh. But isn't that against apple's security? I mean to execute a shell and then a command in it? I'm thinking it must be in the way I'm trying to read the the output.

What about using the installer (SUID Tool) approach. I have never done that, but I thought about it because I have a little project where I have the same problem of collecting the stderr stream when executing with privileges.
You then could collect the stderr streams in the SUID tool yourself and pass them though a pipe to the caller.
But just a thought, not tested.



Manfred

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Reading data from the pipe in AuthorizationExecuteWithPrivileges() ??
      • From: Mark Williams <email@hidden>
References: 
 >Reading data from the pipe in AuthorizationExecuteWithPrivileges() ?? (From: Mark Williams <email@hidden>)
 >Re: Reading data from the pipe in AuthorizationExecuteWithPrivileges() ?? (From: Sherm Pendley <email@hidden>)
 >Re: Reading data from the pipe in AuthorizationExecuteWithPrivileges() ?? (From: Mark Williams <email@hidden>)

  • Prev by Date: Re: strange malloc error with NSWindow makeKeyAndOrderFront:
  • Next by Date: Re: Reading data from the pipe in AuthorizationExecuteWithPrivileges() ??
  • Previous by thread: Re: Reading data from the pipe in AuthorizationExecuteWithPrivileges() ??
  • Next by thread: Re: Reading data from the pipe in AuthorizationExecuteWithPrivileges() ??
  • Index(es):
    • Date
    • Thread