Detecting unmount from KAUTH vnode_listener
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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jakub Bednar