My apologies, I'm unable to reproduce the behavior I saw earlier with 'user-specific' DAApprovalSessionRef. I haven't the faintest how it happened, maybe a bug in some other part of my code and I jumped to conclusions. Anyhow, if I hit an obstacle, I'd re-raise the issue with the list. Still, I'd be interested in knowing how can I provide username based variables in launchd's plists, if at all possible. Thanks and apologies again, - Yaniv On 11/19/07, Quinn <eskimo1@apple.com> wrote:
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 _______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/launchd-dev