| 40 |
|
[], |
| 41 |
|
[#include <sys/disk.h>]) |
| 42 |
|
|
| 43 |
< |
# Default needing setgid to false |
| 43 |
> |
# Default needing setgid/setuid to false |
| 44 |
|
AM_CONDITIONAL(SETGIDBINS, false) |
| 45 |
+ |
AM_CONDITIONAL(SETUIDBINS, false) |
| 46 |
|
|
| 47 |
|
# Set things up for different OS's |
| 48 |
|
# We define the name of the OS so the code can act accordingly |
| 52 |
|
AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])]) |
| 53 |
|
AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) |
| 54 |
|
AC_DEFINE(SOL7, , [Building on Solaris 2.7]) |
| 55 |
+ |
AM_CONDITIONAL(SETUIDBINS, true) |
| 56 |
|
LINKFLAGS="-lkstat -ldevinfo" |
| 57 |
|
;; |
| 58 |
|
solaris2.*) |
| 59 |
|
AC_CHECK_HEADERS([kstat.h],,[AC_MSG_ERROR([need kstat.h])]) |
| 60 |
|
AC_DEFINE(SOLARIS, , [Building on Solaris 2.x]) |
| 61 |
+ |
AM_CONDITIONAL(SETUIDBINS, true) |
| 62 |
|
LINKFLAGS="-lkstat -ldevinfo" |
| 63 |
|
;; |
| 64 |
|
freebsd4.*) |
| 154 |
|
) |
| 155 |
|
|
| 156 |
|
# Check if the user wants to turn off setgid binaries |
| 154 |
– |
# (only really relevant on FreeBSD) |
| 157 |
|
AC_ARG_ENABLE(setgid-binaries, |
| 158 |
|
[ --disable-setgid-binaries disable binaries being setgid], |
| 159 |
|
[ |
| 160 |
|
if test "x$enableval" = "xno" ; then |
| 161 |
|
AM_CONDITIONAL(SETGIDBINS, false) |
| 162 |
+ |
fi |
| 163 |
+ |
] |
| 164 |
+ |
) |
| 165 |
+ |
|
| 166 |
+ |
# Check if the user wants to turn off setuid binaries |
| 167 |
+ |
AC_ARG_ENABLE(setuid-binaries, |
| 168 |
+ |
[ --disable-setuid-binaries disable binaries being setuid], |
| 169 |
+ |
[ |
| 170 |
+ |
if test "x$enableval" = "xno" ; then |
| 171 |
+ |
AM_CONDITIONAL(SETUIDBINS, false) |
| 172 |
|
fi |
| 173 |
|
] |
| 174 |
|
) |