[launchd-dev] Mysterious problem with [NSURL getResourceValue:forKey:error:]
Quinn "The Eskimo!"
eskimo1 at apple.com
Wed Aug 24 00:38:33 PDT 2016
On 23 Aug 2016, at 17:53, James Bucanek <subscriber at gloaming.com> wrote:
> P.S. I would be nice if the UserName launchd property would also accept a number and interpret it as a UID: <key>UserName</key><integer>501</integer>.
Yeah, that’s not really how launchd is architected.
> Each daemon is named after its user: com.qrecall.switchboard.501, com.qrecall.switchboard.502, and so on. Each user connects only with its switchboard, and that switchboard only manages endpoints belonging to that user.
Hmmm, that’s weird. How do you stop code running as user 502 connecting to the `com.qrecall.switchboard.501` service? Presumable the daemon has a user ID check on its IPC. If you’re doing that anyway, you could just have one daemon that handles all users.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
More information about the launchd-dev
mailing list