Header + linking(?)
This commit is contained in:
parent
b31cc5948b
commit
599dde34c1
@ -1,3 +1,11 @@
|
||||
/*
|
||||
FILENAME : pam_panic_authdevice.c
|
||||
DESCRIPTION : Authenticates against the removable media
|
||||
AUTHOR : Bandie
|
||||
DATE : 2018-03-27T02:34:08+02:00
|
||||
LICENSE : GNU-GPLv3
|
||||
*/
|
||||
|
||||
|
||||
int authDevice(pam_handle_t *pamh, char *allowed, char *rejected, char *serious_dev, int8_t bSerious, int8_t bReboot, int8_t bPoweroff){
|
||||
|
||||
|
@ -1,3 +1,12 @@
|
||||
/*
|
||||
FILENAME : pam_panic_authdevice.h
|
||||
AUTHOR : Bandie
|
||||
DATE : 2018-03-27T02:34:08+02:00
|
||||
LICENSE : GNU-GPLv3
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#define ASK "Please enter your secret key to decrypt the firewall and access the mainframe. "
|
||||
|
||||
#include "pam_panic_authdevice.c"
|
||||
|
@ -1,3 +1,11 @@
|
||||
/*
|
||||
FILENAME : pam_panic_password.c
|
||||
DESCRIPTION : Reads password from PPASSFILE
|
||||
AUTHOR : Bandie
|
||||
DATE : 2018-03-27T02:34:08+02:00
|
||||
LICENSE : GNU-GPLv3
|
||||
*/
|
||||
|
||||
|
||||
|
||||
int readPassword(pam_handle_t *pamh, char pw[2][99]){
|
||||
|
@ -1,2 +1,11 @@
|
||||
/*
|
||||
FILENAME : pam_panic_password.h
|
||||
AUTHOR : Bandie
|
||||
DATE : 2018-03-27T02:34:08+02:00
|
||||
LICENSE : GNU-GPLv3
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include <crypt.h>
|
||||
#include "pam_panic_password.c"
|
||||
|
@ -1,3 +1,11 @@
|
||||
/*
|
||||
FILENAME : pam_panic_reject.c
|
||||
DESCRIPTION : Panic function
|
||||
AUTHOR : Bandie
|
||||
DATE : 2018-03-27T02:34:08+02:00
|
||||
LICENSE : GNU-GPLv3
|
||||
*/
|
||||
|
||||
|
||||
int reject(char *serious_dev, int8_t bSerious, int8_t bReboot, int8_t bPoweroff){
|
||||
if(bSerious){
|
||||
|
@ -1 +1,9 @@
|
||||
/*
|
||||
FILENAME : pam_panic_reject.h
|
||||
AUTHOR : Bandie
|
||||
DATE : 2018-03-27T02:34:08+02:00
|
||||
LICENSE : GNU-GPLv3
|
||||
*/
|
||||
|
||||
|
||||
#include "pam_panic_reject.c"
|
||||
|
@ -1,6 +1,6 @@
|
||||
LDFLAGS = -lc -lcrypt
|
||||
CFLAGS = $(LDFLAGS) --std=gnu11 -Wall -O2 -DPPASSFILE=\"$(PPASSFILE)\"
|
||||
LDFLAGS = -lm -lcrypt
|
||||
CFLAGS = --std=gnu11 -Wall -O2 -DPPASSFILE=\"$(PPASSFILE)\"
|
||||
|
||||
all:
|
||||
mkdir -p ../../build/
|
||||
gcc $(CFLAGS) pam_panic_pw.c -o ../../build/pam_panic_pw
|
||||
gcc $(CFLAGS) pam_panic_pw.c -o ../../build/pam_panic_pw $(LDFLAGS)
|
||||
|
@ -1,3 +1,11 @@
|
||||
/*
|
||||
FILENAME : pam_panic_pw.c
|
||||
DESCRIPTION : Generates and saves password for pam_panic
|
||||
AUTHOR : Bandie
|
||||
DATE : 2018-03-27T02:34:08+02:00
|
||||
LICENSE : GNU-GPLv3
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user