[launchd-dev] Getting user parameters as an agent
Quinn
eskimo1 at apple.com
Mon Nov 19 02:34:22 PST 2007
At 23:14 +0200 17/11/07, Yaniv Aknin wrote:
>I'm writing a Tiger agent in Python and C which must run as root (it
>enforces policies on the user). The agent should, however, know
>which user it is enforcing (this is due to DiskArbitration's
>inability to create a 'global' Approval session affecting all users).
It seems like this is where you're getting into trouble. DiskArb is
a daemon-safe framework. I believe it should be possible for a
daemon to implement a DAApprovalSessionRef that affects all mounts on
the system. Can you explain how you tried to do that and what went
wrong?
S+E
--
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