Mimic regular services and their PAM stacks by replacing pam_unix with pam_matrix and running tests with libpamtest. This needs to be done in a temporary container, because we modify files such as /etc/pam.d/common-auth and affect whole authentication of the system.
https://cwrap.org/pam_wrapper.html
Relates to #17
How
Mimic regular services and their PAM stacks by replacing
pam_unix
withpam_matrix
and running tests withlibpamtest
. This needs to be done in a temporary container, because we modify files such as/etc/pam.d/common-auth
and affect whole authentication of the system.Test cases
Services (at least the following):
pam_unix
&pam_securetty
disabledpam_unix
pam_unix
replaced withpam_matrix
pam_securetty
pam_matrix
&pam_securetty
disabled