From 41e2c34bd01932fe55a32b3aa94aba5c0f9d2343 Mon Sep 17 00:00:00 2001 From: Andreas Henriksson Date: Thu, 2 Jan 2020 19:19:00 +0100 Subject: pam_umask: build-time usergroups option default This change adds a configure option to set the default value of the usergroups option (of the pam_umask module) at build-time. Distributions usually makes the decision if usergroups should be used or not. This allows them to control the built-in default value, without having to ship the value in a config file (cluttering up the view of actually relevant user/system configuration overrides). --- modules/pam_umask/pam_umask.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/pam_umask') diff --git a/modules/pam_umask/pam_umask.c b/modules/pam_umask/pam_umask.c index d962ed1f..f101919f 100644 --- a/modules/pam_umask/pam_umask.c +++ b/modules/pam_umask/pam_umask.c @@ -90,6 +90,9 @@ get_options (pam_handle_t *pamh, options_t *options, int argc, const char **argv) { memset (options, 0, sizeof (options_t)); + + options->usergroups = DEFAULT_USERGROUPS_SETTING; + /* Parse parameters for module */ for ( ; argc-- > 0; argv++) parse_option (pamh, *argv, options); -- cgit v1.2.3