diff options
author | Jeremy Allison <jra@samba.org> | 2014-10-03 17:18:34 -0700 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-10-06 10:12:06 +0200 |
commit | 7366204845fda07ee4a83a1a63875f643d0a5794 (patch) | |
tree | fb9a34a03dfa99c2b054162abd1b25731c08d754 /lib/uid_wrapper | |
parent | 15840955cb5bcb7ec74c396852299776e94ccd0f (diff) | |
download | samba-7366204845fda07ee4a83a1a63875f643d0a5794.tar.gz |
lib: uid_wrapper: Fix setgroups and syscall detection on a system without native uid_wrapper library.
Originally from youzhong@gmail.com.
https://bugzilla.samba.org/show_bug.cgi?id=10851
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'lib/uid_wrapper')
-rw-r--r-- | lib/uid_wrapper/wscript | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/uid_wrapper/wscript b/lib/uid_wrapper/wscript index 3e73e839b1c..6b585956e0d 100644 --- a/lib/uid_wrapper/wscript +++ b/lib/uid_wrapper/wscript @@ -49,6 +49,13 @@ def configure(conf): 'HAVE_FUNCTION_ATTRIBUTE_FORMAT', addmain=False, msg='Checking for printf format validation support') + # Prototype checks + conf.CHECK_C_PROTOTYPE('setgroups', + 'int setgroups(int ngroups, const gid_t *grouplist)', + define='HAVE_SETGROUPS_INT', headers='unistd.h sys/types.h') + conf.CHECK_C_PROTOTYPE('syscall', + 'int syscall(int number, ...)', + define='HAVE_SYSCALL_INT', headers='unistd.h sys/syscall.h') # Create full path to uid_wrapper srcdir = os.path.realpath(conf.srcdir) |