Kauth event for write operation
Kauth event for write operation
- Subject: Kauth event for write operation
- From: simran charley <email@hidden>
- Date: Fri, 30 Mar 2012 17:49:20 +0530
Hi,
Thanks for reply. It is helpful for me.
I want to ask one question regarding copy operation.
I am doing copy operation from one location to other.
I have get following events:
if i have copy file1.rtf to file2.rtf,
following events I get on file2.rtf
scope=com.apple.kauth.fileop, action= "" } path=/private/var/root/Desktop/test/file2.rtf
scope=com.apple.kauth.vnode, action= "" ACCESS } path=/private/var/root/Desktop/test/file2.rtf
scope=com.apple.kauth.fileop, action= "" path=/private/var/root/Desktop/test/file2.rtf, dirty=true
scope=com.apple.kauth.vnode, action= "">WRITE_DATA ACCESS } path=/private/var/root/Desktop/test/file2.rtf
Here after file closed with dirty = true, means file modification done, then what is the significance of last event {WRITE_DATA ACCESS} ?
Thanks,
Simran.
>
I want to catch each write operation.
There's
really no supported way to do this in Mac OS X. KAUTH_VNODE_WRITE_DATA
authorisation is done when the file is opened and KAUTH_FILEOP_CLOSE
notification is done when the file is closed but, for performance reasons,
there's no supported way to be authorise or be notified of every single write
operation.
Hi,
I want to know which event we get when we write data in the file.I want to
catch each write operation.
I have registered for Vnode and File scope.I get
event KAUTH_VNODE_WRITE_DATAwhen I open the file in write mode, then no events for write data (writing
using write() api or using Texteditor) and KAUTH_FILEOP_CLOSE with dirty
flag "true" when I closed the file or
save the contents of file.
Please explain the mechanism of Kauth in this case.
Thanks,
Simran.
_______________________________________________
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