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

Conversation

avanier
Copy link
Contributor

@avanier avanier commented Apr 16, 2018

Fixes #206.

Allows Gnome Display Manager to start properly under Fedora 27.

@coveralls
Copy link

coveralls commented Apr 16, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 3313d83 on avanier:add_pam_systemd into aa9202b on dev-sec:master.

Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @avanier Great addition, I left a comment for a small attribute name improvement

@@ -35,5 +35,8 @@ password required pam_deny.so

session optional pam_keyinit.so revoke
session required pam_limits.so
<% if node['os-hardening']['desktop']['enable'] && node['platform'] == 'fedora' %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to reuse the same naming pattern as above:

node['os-hardening']['auth']['pam']['pam_systemd']['enable']

@avanier
Copy link
Contributor Author

avanier commented Apr 23, 2018

@chris-rock This should work, but for some reason I'm unable to converge the kitchens now.

@avanier
Copy link
Contributor Author

avanier commented Apr 24, 2018

Alright, got my kitchen to converge. No explosions.

@avanier
Copy link
Contributor Author

avanier commented May 6, 2018

@chris-rock Bump, if I may.

@@ -79,6 +79,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'] && node['platform'] == 'fedora'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@avanier thanks for this PR! It looks like pam_systemdis related to all systemd based distros, however we manage this particular pam configuration only for rhel/fedora. My suggestion is to remove && node['platform'] == 'fedora' here because of that

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove the leading -

@avanier avanier force-pushed the add_pam_systemd branch from b41dafc to 3313d83 Compare July 1, 2018 11:00
@avanier
Copy link
Contributor Author

avanier commented Jul 1, 2018

@artem-sidorenko Rebased on upstream master, and requested changes are applied. 🤘

@artem-sidorenko artem-sidorenko merged commit 5fde201 into dev-sec:master Jul 2, 2018
@artem-sidorenko
Copy link
Member

@avanier thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants