Commit graph

3 commits

Author SHA1 Message Date
Mikolaj Izdebski
7bc1dc57a2 mock: check user groups before asking for password 2018-08-16 09:29:51 +00:00
Todd Zullinger
ea5ab7b453 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
2018-07-28 10:55:16 -04:00
Kevin Fenzi
07709f793b lineinfile is evil 2018-05-27 00:46:56 +00:00