[SCM] Samba Shared Repository - branch master updated

Andrew Bartlett abartlet at samba.org
Fri Aug 14 16:05:04 UTC 2015


The branch, master has been updated
       via  c93e2cd waf: Check for Linux has 32-bit credential calls
      from  e6c8452 libcli: Use iov_buflen in smb2_signing.c

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit c93e2cdd1ef9f9e32e018c81b58f891cc95c0398
Author: Andreas Schneider <asn at samba.org>
Date:   Fri Aug 14 10:59:05 2015 +0200

    waf: Check for Linux has 32-bit credential calls
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Andrew Bartlett <abartlet at samba.org>
    
    Autobuild-User(master): Andrew Bartlett <abartlet at samba.org>
    Autobuild-Date(master): Fri Aug 14 18:04:53 CEST 2015 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 lib/uid_wrapper/wscript | 38 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/lib/uid_wrapper/wscript b/lib/uid_wrapper/wscript
index 3b3d5bf..b5b1f7a 100644
--- a/lib/uid_wrapper/wscript
+++ b/lib/uid_wrapper/wscript
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 
 import Options
-import os
+import os, sys
 
 VERSION="1.1.0"
 
@@ -107,6 +107,42 @@ def configure(conf):
 			'int syscall(int number, ...)',
 			define='HAVE_SYSCALL_INT', headers='unistd.h sys/syscall.h')
 
+        if (sys.platform.rfind('linux') > -1):
+            conf.CHECK_CODE('''
+#if defined(HAVE_UNISTD_H)
+#include <unistd.h>
+#endif
+#include <stdlib.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <errno.h>
+
+#ifdef HAVE_SYS_PRIV_H
+#include <sys/priv.h>
+#endif
+#ifdef HAVE_SYS_ID_H
+#include <sys/id.h>
+#endif
+
+#if defined(HAVE_SYSCALL_H)
+#include <syscall.h>
+#endif
+
+#if defined(HAVE_SYS_SYSCALL_H)
+#include <sys/syscall.h>
+#endif
+
+syscall(SYS_setresuid32, -1, -1, -1);
+syscall(SYS_setresgid32, -1, -1, -1);
+syscall(SYS_setreuid32, -1, -1);
+syscall(SYS_setregid32, -1, -1);
+syscall(SYS_setuid32, -1);
+syscall(SYS_setgid32, -1);
+syscall(SYS_setgroups32, 0, NULL);
+''',
+                'HAVE_LINUX_32BIT_SYSCALLS',
+                msg="Checking whether Linux has 32-bit credential calls");
+
         conf.CHECK_FUNCS('getresuid getresgid')
 
         # Create full path to uid_wrapper


-- 
Samba Shared Repository



More information about the samba-cvs mailing list