I am working for listening file operation.
I find that I can listen the rename operation by registering KAUTH_SCOPE_FILEOP and listening on KAUTH_FILEOP_RENAME. But this is only a notification, kernel does not care it's return value.
So I can't block some rename operation on special files.
I also find a register for KAUTH_SCOPE_VNODE, but there is no action for rename operation.
Is there any methord to block the rename operation?
Thank you very much!