Detecting unmount from KAUTH vnode_listener
Detecting unmount from KAUTH vnode_listener
- Subject: Detecting unmount from KAUTH vnode_listener
- From: Jakub Bednar <email@hidden>
- Date: Mon, 03 Dec 2012 15:58:26 +0100
Hello everybody,
I am writing a KAUTH subsystem module and I am wondering how can I detect file system unmount. I thought that checking for KAUTH_VNODE_DELETE | KAUTH_VNODE_DELETE_CHILD and vnode_mountedon(), will tell me, when an unmount is about to happen. But unfortunately it does not work this way.
For some reason the KAUTH_VNODE_DELETE is getting called even for mount points that are not being unmounted. I tried also checking vfs_isunmount(vnode_mount()), but it returns false all the time.
Any help would be most appreciated.
Best regards,
Jakub
_______________________________________________
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