vfs_error_inject: add unlinkat hook
authorRalph Boehme <slow@samba.org>
Mon, 25 Jan 2021 10:46:30 +0000 (11:46 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 26 Jan 2021 02:55:28 +0000 (02:55 +0000)
commitc44dad3ac2eb36fc5eb5a9f80a9ef97183be26ef
tree2079fcfb086d8f2ac24c3f18646a5cff12cc3b09
parent17a8fa6d242ee9c898a1fdb5ab340223702fcced
vfs_error_inject: add unlinkat hook

Note that a failure is only injected if the owner of the parent directory is not
the same as the current user.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14617

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_error_inject.c