Skip to content
This repository has been archived by the owner on Dec 26, 2020. It is now read-only.

Selinux issue #75

Closed
romaincabassot opened this issue Oct 10, 2016 · 1 comment
Closed

Selinux issue #75

romaincabassot opened this issue Oct 10, 2016 · 1 comment
Labels

Comments

@romaincabassot
Copy link

Hello,
When I have ssh_use_pam=true the role fails on:

TASK [dev-sec.ssh-hardening : remove selinux-policy when Pam is used, because Allowing sshd to read the shadow file directly is considered a potential security risk (http://danwalsh.livejournal.com/12333.html)] ***
fatal: [gitana-ext.magellium.com]: FAILED! => {"changed": true, "cmd": "semodule -r ssh_password", "delta": "0:00:02.809950", "end": "2016-10-10 16:42:34.105591", "failed": true, "rc": 1, "start": "2016-10-10 16:42:31.295641", "stderr": "libsemanage.get_module_file_by_name: Module ssh_password was not found.\nsemodule:  Failed on ssh_password!", "stdout": "", "stdout_lines": [], "warnings": []}

(except if I have run the playbook before withe ssh_use_pam=false).
Maybe you could check if the module is installed before trying to remove it?
Thanks.
PS: the 3.1 release is not on ansible galaxy

@rndmh3ro rndmh3ro added the bug label Oct 10, 2016
@rndmh3ro
Copy link
Member

Thanks for this, @romaincabassot.

I'll fix this together with the other issue you created!

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

No branches or pull requests

2 participants