vfs_error_inject: add unlinkat hook
authorRalph Boehme <slow@samba.org>
Mon, 25 Jan 2021 10:46:30 +0000 (11:46 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 27 Jan 2021 16:00:06 +0000 (16:00 +0000)
commitd5a696fc8869b9ce65f063ce93b04d07b01c2b2a
tree1b10848447158ef9e53db39cb6c4cfd893ed05e4
parent5041731ca022c1f4edd11d8abd0642072e3088f9
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>
(cherry picked from commit c44dad3ac2eb36fc5eb5a9f80a9ef97183be26ef)
source3/modules/vfs_error_inject.c