• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to get destination file path during copy/paste operation using Kauth-API
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get destination file path during copy/paste operation using Kauth-API


  • Subject: How to get destination file path during copy/paste operation using Kauth-API
  • From: Ganesh Bawaskar <email@hidden>
  • Date: Wed, 09 Oct 2013 11:39:11 +0530

I want to log  destination file path during copy/paste operation using Kauth-API in driver.

There are two scenario.

1.   When user paste file in any directory , we get exact KAUTH_VNODE_WRITE_DATA event on file which is being copied.So its possible for us to get  destination path including that file name.So its fine.


But problem is in second scenario

2.    When I paste folder into other directory,I don't get  exact KAUTH_VNODE_WRITE_DATA event on inner files in that folder. In this case we get (KAUTH_VNODE_WRITE_DATA | KAUTH_VNODE_ACCESS) event on both source and destination path files in that folder.So how to distinguish this.

My intention is when user paste folder in other directory , we should be able to log destination file path for inner files in that folder. 

Note:I am handing events only on File vnode


Any help will be highly appreciated..


Thanks .

Ganesh Bawaskar


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: diskutil verify disk disagrees with gpt and gdisk
  • Next by Date: kgmacros for 10.9 GM kernel debug Kit
  • Previous by thread: diskutil verify disk disagrees with gpt and gdisk
  • Next by thread: kgmacros for 10.9 GM kernel debug Kit
  • Index(es):
    • Date
    • Thread