Re: Safe frameworks for privileged tools?

2008-04-23 Thread Michael Watson
That's a good table to know/have handy. Thanks. Okay, so LaunchServices is out as well. Is there *any* reliable way to know if a directory is a bundle or package without using NSWorkspace or LaunchServices? (I'm also going to have to omit Spotlight, since I can't be guaranteed it's enabled

Re: Safe frameworks for privileged tools?

2008-04-23 Thread Kevin Grant
Does the target directory require privilege to see, or does it just happen to be used by a privileged tool? If the latter, you could always rely on a 2nd executable (without privilege) to examine the directory and return its results to your privileged program. Kevin G. That's a good table

Re: Safe frameworks for privileged tools?

2008-04-23 Thread Michael Watson
That's the hang-up. The target directory may require privilege to see. -- m-s On 23 Apr, 2008, at 02:42, Kevin Grant wrote: Does the target directory require privilege to see, or does it just happen to be used by a privileged tool? If the latter, you could always rely on a 2nd executable

Re: Safe frameworks for privileged tools?

2008-04-23 Thread Ken Thomases
On Apr 23, 2008, at 1:18 AM, Michael Watson wrote: Okay, so LaunchServices is out as well. Is there *any* reliable way to know if a directory is a bundle or package without using NSWorkspace or LaunchServices? Here's some info:

Re: Safe frameworks for privileged tools?

2008-04-23 Thread stephen joseph butler
On Wed, Apr 23, 2008 at 11:42 AM, Dave Camp [EMAIL PROTECTED] wrote: Unless I'm reading the OP wrong, he's writing a privileged helper tool, not a daemon. Given that, I don't think the above documents are applicable. None of what I know is official, but just gathered and extrapolated from

Re: Safe frameworks for privileged tools?

2008-04-23 Thread Michael Watson
Yes, it's a helper tool. It runs for a couple of seconds (under normal conditions) and exits immediately. It interacts with the file system by reading information about some directories, so its launched duration is, of course, bound to the responsiveness of the hard drive on which it's

Re: Safe frameworks for privileged tools?

2008-04-23 Thread Chris Suter
On 24/04/2008, at 4:35 AM, Michael Watson wrote: Yes, it's a helper tool. It runs for a couple of seconds (under normal conditions) and exits immediately. It interacts with the file system by reading information about some directories, so its launched duration is, of course, bound to the

Safe frameworks for privileged tools?

2008-04-22 Thread Michael Watson
Hey all, I'm writing a privileged helper tool that at one point needs to determine if a given directory is a package. Normally, I'd use NSWorkspace, but that's part of AppKit, which is tied to Window Server. I don't link to AppKit in my privileged tool, so I don't get the

Re: Safe frameworks for privileged tools?

2008-04-22 Thread stephen joseph butler
On Tue, Apr 22, 2008 at 10:52 PM, Michael Watson [EMAIL PROTECTED] wrote: I would like to use LaunchServices for this, but wasn't sure if it was kosher to link to ApplicationServices.framework from a privileged tool. Are there guidelines as to which frameworks should and shouldn't be used in