diff options
author | Seraphim Mellos <mellos@ceid.upatras.gr> | 2008-06-16 22:57:28 +0300 |
---|---|---|
committer | Seraphim Mellos <mellos@ceid.upatras.gr> | 2008-06-22 05:59:36 +0300 |
commit | e54218e455d4c76d72d1315dfbc8d55538c3039c (patch) | |
tree | 123293a88083f199ac9025cce9237a7a12f09e88 /modules/pam_nologin/pam_nologin.c~ | |
parent | Completed pam_rootok and pam_securetty (diff) | |
download | openpam-modules-e54218e455d4c76d72d1315dfbc8d55538c3039c.tar.gz openpam-modules-e54218e455d4c76d72d1315dfbc8d55538c3039c.tar.bz2 openpam-modules-e54218e455d4c76d72d1315dfbc8d55538c3039c.zip |
Added logging/debug msgs in pam_unix
Diffstat (limited to 'modules/pam_nologin/pam_nologin.c~')
-rw-r--r-- | modules/pam_nologin/pam_nologin.c~ | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/pam_nologin/pam_nologin.c~ b/modules/pam_nologin/pam_nologin.c~ new file mode 100644 index 0000000..db95fbe --- /dev/null +++ b/modules/pam_nologin/pam_nologin.c~ @@ -0,0 +1,20 @@ +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <pwd.h> +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> + +#ifndef __linux__ +#include <login_cap.h> +#endif + +#define PAM_SM_AUTH + +#include <security/pam_appl.h> +#include <security/pam_modules.h> +#include <security/pam_mod_misc.h> + +#define NOLOGIN_FILE "/etc/nologin" + |