summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2016-10-14 10:54:24 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2016-10-14 18:06:13 +0200
commitb7b92bafe759854ad05038f1d48a69e358a7ccbf (patch)
treead21e19f7a690139bdde75f45f7cbfc997f84fb0
parent761515e2745e52ecfa90553fa5046ac4a701549a (diff)
downloadsssd-b7b92bafe759854ad05038f1d48a69e358a7ccbf.tar.gz
sssd-b7b92bafe759854ad05038f1d48a69e358a7ccbf.tar.xz
sssd-b7b92bafe759854ad05038f1d48a69e358a7ccbf.zip
BUILD: Only search for service in /sbin and /usr/sbin
The shell is executed for invocation of the service binary. Therefore it is better to search the binary only in safe paths. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
-rw-r--r--src/external/service.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/src/external/service.m4 b/src/external/service.m4
index f475f26e3..1e6e18918 100644
--- a/src/external/service.m4
+++ b/src/external/service.m4
@@ -1,5 +1,5 @@
AC_DEFUN([CHECK_SERVICE_EXECUTABLE],
- [ AC_PATH_PROG(SERVICE, service)
+ [ AC_PATH_PROG([SERVICE], [service], [], [/sbin:/usr/sbin])
AC_MSG_CHECKING(for the executable \"service\")
if test -x "$SERVICE"; then
AC_DEFINE(HAVE_SERVICE, 1, [Whether the service command is available])