Pre-authorizing authopen
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