aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_faillock
diff options
context:
space:
mode:
authorAllison Karlitskaya <allison.karlitskaya@redhat.com>2020-11-05 14:06:53 +0100
committerAllison Karlitskaya <allison.karlitskaya@redhat.com>2020-11-10 14:48:25 +0100
commit62d826471e87e27b39a36ccbeee58999e2514a92 (patch)
tree245deb745de891e4c45d883035bb114001bd28ab /modules/pam_faillock
parentecd526743a27157c5210b0ce9867c43a2fa27784 (diff)
downloadpam-62d826471e87e27b39a36ccbeee58999e2514a92.tar.gz
pam-62d826471e87e27b39a36ccbeee58999e2514a92.tar.bz2
pam-62d826471e87e27b39a36ccbeee58999e2514a92.zip
libpam: add supplementary groups on priv drop
Replace the setgroups(0, NULL) call in pam_modutil_drop_priv() with a call to initgroups(). This makes sure that the user's supplementary groups are also configured. Fall back to setgroups(0, NULL) in case the initgroups() call fails. This fixes the permission check in pam_motd: this feature was intended to allow setting permissions on a motd file to prevent it from being shown to users who are not a member of a particular group (for example, wheel). Closes #292
Diffstat (limited to 'modules/pam_faillock')
0 files changed, 0 insertions, 0 deletions