Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pam_systemd.so to system-auth-ac #207

Merged
merged 2 commits into from
Jul 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
default['os-hardening']['auth']['pam']['tally2']['template_cookbook'] = 'os-hardening'
default['os-hardening']['auth']['pam']['passwdqc']['template_cookbook'] = 'os-hardening'
default['os-hardening']['auth']['pam']['system-auth']['template_cookbook'] = 'os-hardening'
default['os-hardening']['auth']['pam']['pam_systemd']['enable'] = node['os-hardening']['desktop']['enable']
default['os-hardening']['auth']['root_ttys'] = %w[console tty1 tty2 tty3 tty4 tty5 tty6]
default['os-hardening']['auth']['uid_min'] = 1000
default['os-hardening']['auth']['uid_max'] = 60000
Expand Down
3 changes: 3 additions & 0 deletions templates/default/rhel_system_auth.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@ password required pam_deny.so

session optional pam_keyinit.so revoke
session required pam_limits.so
<% if node['os-hardening']['auth']['pam']['pam_systemd']['enable'] %>
session optional pam_systemd.so
<% end %>
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session required pam_unix.so