This repository has been archived by the owner on Dec 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for selinux and pam. fix #23
This change add the following: - it checks wether selinux is in "Enforcing" mode - when selinux is enforcing, it copies a new selinux-policy to the host - this policy allows sshd to read the shadow-file directly, which is forbidden by selinux otherwise - the policy is then compiled, a package is created and the policy is installed - when selinux is enforcing, pam is used and the policy is not disabled, it gets removed, because its considered a security risk. see here: http://danwalsh.livejournal.com/12333.html
- Loading branch information
Sebastian Gumprich
committed
Aug 10, 2015
1 parent
ef8c4ad
commit c4482cb
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module ssh_password 1.0; | ||
|
||
require { | ||
type sshd_t; | ||
type shadow_t; | ||
class file { read open }; | ||
} | ||
|
||
#============= sshd_t ============== | ||
allow sshd_t shadow_t:file { read open }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters