From ea5ab7b45341bc01fb0f8e4172764a402b4a3d9f Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Sat, 28 Jul 2018 10:52:45 -0400 Subject: [PATCH] maintainer-test: fix mock PAM config The mock pam.d file, added in 07709f793 ("lineinfile is evil", 2018-05-27), was missing a '#' on the '%PAM-1.0' line. This causes parse errors and prevents consolehelper from properly allowing users in the mock group to execute mock without the root password. The following error is logged in /var/log/secure when attempting to run mock: Jul 28 14:11:28 arm03-packager01 userhelper[325]: PAM (mock) illegal module type: %PAM-1.0 Jul 28 14:11:28 arm03-packager01 userhelper[325]: PAM (mock) no control flag supplied Jul 28 14:11:28 arm03-packager01 userhelper[325]: PAM (mock) no module name supplied --- files/common/mock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/common/mock b/files/common/mock index f53258d470..e307ff7216 100644 --- a/files/common/mock +++ b/files/common/mock @@ -1,4 +1,4 @@ -%PAM-1.0 +#%PAM-1.0 auth sufficient pam_rootok.so auth sufficient pam_succeed_if.so user ingroup mock use_uid quiet # Uncomment the following line to implicitly trust users in the "wheel" group.