site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=QF8NArE9+cVN8hyIA+NacpLvL3m7OZeuDwmT3zxJdlM=; b=O3HCojA6eNGQRWXFfPr41LoQkmnD0VYNNaM1oZ/shZg+y+h6MG1dj+6Uu0QgKYsoUx ZU5CDi3jqyaT7asTUyDF9WGYutnMU5asonBe+ZcEB9Wj80vS8RtyLleXHQRNw0l13BSH vzE2eIeymCI8quxtskpze3StHuFouiWut+bEw= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=Kh0yIAFHfmv8Fhm0ebY/c9xJYB3NCYFYOes5QJFulp3A8Cy40p/znrbQRbjwM+oh1z xI+STqufcPd5cG1YUUsSQIvsJNg65gfVxUBRnddAg0kLcQuBFqilKBusk7DPAv8PSZb5 js1HfAp1ycStf8aba9xHJc+q8LtdGEa/CqxCI= Hi I'm using authopen like this: int pipe[2]; socketpair(AF_UNIX, SOCK_STREAM, 0, pipe); Thanks, Georg _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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? This email sent to site_archiver@lists.apple.com