src/uid_wrapper.c: check for uid_wrapper related syscall numbers before uid_wrapper_e...
authorStefan Metzmacher <metze@samba.org>
Mon, 16 Jan 2023 10:27:32 +0000 (11:27 +0100)
committerAndreas Schneider <asn@samba.org>
Tue, 17 Jan 2023 13:27:50 +0000 (14:27 +0100)
commit681eb371ee03f2f85f50900842b04911fc75e103
tree11c5dfc8c044cd2a4eb8ada2c054e2efe4c420c0
parent1c7324bd295b51cf06e0e8e1e61c494723ff8751
src/uid_wrapper.c: check for uid_wrapper related syscall numbers before uid_wrapper_enabled()

On FreeBSD syscall() is called after the pthread_atfork() 'prepare'
hooks. So we need to avoid calling uid_wrapper_enabled() as it would
deadlock.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
src/uid_wrapper.c