Re: listening KAUTH for move file action
Re: listening KAUTH for move file action
- Subject: Re: listening KAUTH for move file action
- From: Chris Gates <email@hidden>
- Date: Wed, 25 Aug 2010 13:05:08 -0400
I have a similar setup that I am working on so did a quick test. Seems to work for me.
In the fileop listener, under the KAUTH_FILEOP_RENAME case - I print the following out to the sys log when I drag and drop a file to a new dir.
-----
[Finder|launchd|launchd] :RENAME: /Users/xxx/Desktop/tmp.zip /Users/xxx/Desktop/untitled folder/tmp.zip
-----
Where the first item uses some proc functions to get the process names up to the initial process. And the last two items are arg0 and arg1 for your fileop listener.
I am on 10.6, but recall that this also works on 10.5.
Best -
Chris
On Wed, Aug 25, 2010 at 8:58 AM, Jani Brezavšček
<email@hidden> wrote:
Hi,
If I move a file in terminal I would get a KAUTH_FILEOP_RENAME action in KAUTH_SCOPE_FILEOP,
but when I don't do it in terminal I would get nothing... So what actually happens when I do it in Finder with drag and drop?
Thanks,
Jani
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden