From 130e4340f3cc5076742d167f4e913a12607556cd Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Mon, 22 Oct 2012 18:42:44 +0200 Subject: [PATCH] util-linux: changed to use su and login command from shadow package if available --- base/util-linux/util-linux.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/base/util-linux/util-linux.conf b/base/util-linux/util-linux.conf index 0d7d4c082..fd4a70233 100644 --- a/base/util-linux/util-linux.conf +++ b/base/util-linux/util-linux.conf @@ -22,3 +22,10 @@ hook_add premake 5 'touch aclocal.m4' # 'for' loop initial declarations are only allowed in C99 mode var_append GCC_WRAPPER_APPEND ' ' '-std=c99' + +# use su, login from shadow package if available +# Note: the variants provided by util-linux require pam +if pkginstalled shadow; then + var_append extraconfopt ' ' "--disable-su" + var_append extraconfopt ' ' "--disable-login" +fi