mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
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>
This commit is contained in:
parent
40d15260d2
commit
7cb27238fe
@ -1505,6 +1505,11 @@ main() {
|
||||
legacy_quota_libs = ''
|
||||
conf.env['legacy_quota_libs'] = legacy_quota_libs
|
||||
|
||||
conf.CHECK_CODE('(void)unshare(CLONE_FS);',
|
||||
headers='sched.h',
|
||||
define='HAVE_UNSHARE_CLONE_FS',
|
||||
msg='for Linux unshare(CLONE_FS)')
|
||||
|
||||
#
|
||||
# cluster support (CTDB)
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user