configure: check for Linux specific unshare() with CLONE_FS
authorRalph Boehme <slow@samba.org>
Tue, 13 Mar 2018 15:58:49 +0000 (16:58 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 24 Jul 2018 15:38:27 +0000 (17:38 +0200)
commit7cb27238fe4e6dfc45cf3128ccd4a392aaf4e877
tree835532e8cc38bf480c5ada98aba014e7d6000921
parent40d15260d24d0071732f47873f395fce29b8a6f4
configure: check for Linux specific unshare() with CLONE_FS

Note we still need some kind of runtime detection as
it can fail in some constraint container setups, which
reject the whole unshare() syscall instead of just the
once used for container features.

In case unshare(CLONE_FS) works, we can have a per thread
current working directory and use [f]chdir() safely in
worker threads.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Ralph Boehme <slow@samba.org>
source3/wscript