1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
--- open-vm-tools-9.4.6-1770165.orig/configure.ac
+++ open-vm-tools-9.4.6-1770165/configure.ac
@@ -575,6 +575,7 @@
AC_CHECK_FUNCS([ecvt])
AC_CHECK_FUNCS([fcvt])
+AC_CHECK_FUNCS([setresuid setresgid])
if test "$os" = "freebsd" -a "$osVersion" -ge 600000; then
AC_CHECK_LIB(
--- open-vm-tools-9.4.6-1770165.orig/lib/procMgr/procMgrPosix.c
+++ open-vm-tools-9.4.6-1770165/lib/procMgr/procMgrPosix.c
@@ -137,7 +137,7 @@
#define BASH_PATH "/bin/bash"
#endif
-#if defined(linux) && !defined(GLIBC_VERSION_23) && !defined(__UCLIBC__)
+#if defined(linux)
/*
* Implements the system calls (they are not wrapped by glibc til 2.3.2).
*
@@ -146,7 +146,7 @@
*
* (In fact, newer Linux kernels don't even define _syscall macros anymore.)
*/
-
+#ifndef HAVE_SETRESUID
static INLINE int
setresuid(uid_t ruid,
uid_t euid,
@@ -154,8 +154,9 @@
{
return syscall(__NR_setresuid, ruid, euid, suid);
}
+#endif
-
+#ifndef HAVE_SETRESGID
static INLINE int
setresgid(gid_t ruid,
gid_t euid,
@@ -163,6 +164,8 @@
{
return syscall(__NR_setresgid, ruid, euid, suid);
}
+#endif
+
#endif
|