aboutsummaryrefslogtreecommitdiff
blob: db95fbe55cf9982118618a1a30befa615bbc2561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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"