Premier commit.

Trois programmes:
	- authKeysPg génère un fichier .authorized_keys à partir de la BDD
	- pam_oath_key est un module PAM demandant un mot de passe otp selon la clé de connection SSH utilisée
	- bash-gitonly est un «shell» qui execute les commandes transmises par SSH, uniquement reliées à git et en vérifiant les permissions
This commit is contained in:
Mysaa Java
2021-05-03 22:29:20 +02:00
commit 04d63fd09f
7 changed files with 608 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
.PHONY: all install
all: bash-gitonly pam_oath_key.so auth-keys-gen
nargv/argvt.o: nargv/nargv.c
gcc -c nargv/nargv.c -o nargv/argvt.o
bash-gitonly: nargv/argvt.o bash-gitonly.c
gcc bash-gitonly.c nargv/argvt.o -I . -o bash-gitonly
pam_oath_key.so: pam_oath_key.c
gcc pam_oath_key.c -I/usr/system/include/ -I/usr/server/postgresql/include/ -L/usr/server/postgresql/lib/ -L/usr/libraries/lib/ -shared -lpam -lpq -loath -fPIC -o pam_oath_key.so
auth-keys-gen: authKeysPg.c
gcc authKeysPg.c -o auth-keys-gen -L/usr/server/postgresql/lib -I/usr/server/postgresql/include -lpq
install: all
cp pam_oath_key.so /lib/security
cp bash-gitonly /srv/git/bin
cp auth-keys-gen /srv/etc/