• 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
Pre-authorizing authopen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pre-authorizing authopen


  • Subject: Pre-authorizing authopen
  • From: Georg Schölly <email@hidden>
  • Date: Tue, 6 Oct 2009 11:09:37 +0200

Hi

I'm using authopen like this:

    int pipe[2];
    socketpair(AF_UNIX, SOCK_STREAM, 0, pipe);

if (fork() == 0) { // child
// close parent's pipe
close(pipe[0]);
dup2(pipe[1], STDOUT_FILENO);

const char *authopenPath = "/usr/libexec/authopen";
execl(authopenPath, authopenPath, "-stdoutpipe", [self.device.devicePath fileSystemRepresentation], NULL);
}


I do it this way because I have to get a file descriptor back to my application.

For that authopen requires permission and asks the user for it. This is kind uf ugly because instead of my program's name the name of authopen appears in the dialog. Is there a possibility to pre- authorize authopen?

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


  • Follow-Ups:
    • Re: Pre-authorizing authopen
      • From: Chris Suter <email@hidden>
  • Prev by Date: Re: Record stream
  • Next by Date: Re: Pre-authorizing authopen
  • Previous by thread: Re: Record stream
  • Next by thread: Re: Pre-authorizing authopen
  • Index(es):
    • Date
    • Thread