-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc8dd25
commit d5833e2
Showing
5 changed files
with
55 additions
and
154 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
sdk_container/src/third_party/coreos-overlay/sys-libs/pam/README.md
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,21 @@ | ||
This is a fork of gentoo's sys-libs/pam package. The main reasons | ||
for having our fork seem to be: | ||
|
||
1. We add a locked account functionality. If the account in | ||
`/etc/shadow` has an exclamation mark (`!`) as a first character in | ||
the password field, then the account is blocked. | ||
|
||
2. We install configuration in `/usr/lib/pam`, so the configuration in | ||
`/etc` provided by administration can override the config we | ||
install. | ||
|
||
3. For an unknown reason we drop `gen_usr_ldscript -a pam pam_misc | ||
pamc` from the recipe. | ||
|
||
4. We make the `/sbin/unix_chkpwd` binary a suid one instead of | ||
overriding giving it a CAP_DAC_OVERRIDE to avoid a dependency loop | ||
between pam and libcap. The binary needs to be able to read | ||
/etc/shadow, so either suid or CAP_DAC_OVERRIDE capability should | ||
work. A suid binary is strictly less secure than capability | ||
override, so in long-term we would prefer to avoid having this | ||
hack. On the other hand - this is what we had so far. |
13 changes: 13 additions & 0 deletions
13
...ntainer/src/third_party/coreos-overlay/sys-libs/pam/files/pam-1.5.0-locked-accounts.patch
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,13 @@ | ||
diff -ur linux-pam-d5cb4409ab6b04a6ed7c00245e2c9a430f352b16.orig/modules/pam_unix/support.c linux-pam-d5cb4409ab6b04a6ed7c00245e2c9a430f352b16/modules/pam_unix/support.c | ||
--- linux-pam-d5cb4409ab6b04a6ed7c00245e2c9a430f352b16.orig/modules/pam_unix/support.c 2020-08-18 20:50:27.226355628 +0200 | ||
+++ linux-pam-d5cb4409ab6b04a6ed7c00245e2c9a430f352b16/modules/pam_unix/support.c 2020-08-18 20:51:20.456212931 +0200 | ||
@@ -847,6 +847,9 @@ | ||
return retval; | ||
} | ||
|
||
+ if (pwent->pw_passwd != NULL && pwent->pw_passwd[0] == '!') | ||
+ return PAM_PERM_DENIED; | ||
+ | ||
if (retval == PAM_SUCCESS && spent == NULL) | ||
return PAM_SUCCESS; | ||
|
11 changes: 11 additions & 0 deletions
11
sdk_container/src/third_party/coreos-overlay/sys-libs/pam/files/tmpfiles.d/pam.conf
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,11 @@ | ||
d /etc/pam.d 0755 root root - - | ||
d /etc/security 0755 root root - - | ||
d /etc/security/limits.d 0755 root root - - | ||
d /etc/security/namespace.d 0755 root root - - | ||
f /etc/environment 0755 root root - - | ||
L /etc/security/access.conf - - - - ../../usr/lib/pam/security/access.conf | ||
L /etc/security/group.conf - - - - ../../usr/lib/pam/security/group.conf | ||
L /etc/security/limits.conf - - - - ../../usr/lib/pam/security/limits.conf | ||
L /etc/security/namespace.conf - - - - ../../usr/lib/pam/security/namespace.conf | ||
L /etc/security/pam_env.conf - - - - ../../usr/lib/pam/security/pam_env.conf | ||
L /etc/security/time.conf - - - - ../../usr/lib/pam/security/time.conf |
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
150 changes: 0 additions & 150 deletions
150
sdk_container/src/third_party/coreos-overlay/sys-libs/pam/pam-1.6.1.ebuild
This file was deleted.
Oops, something went wrong.