Added bash-gitonly.c content, now working.

Added file-stored password for every bdd calls
This commit is contained in:
Mysaa Java
2021-05-12 02:20:00 +02:00
parent 04d63fd09f
commit a3a72a9549
5 changed files with 179 additions and 76 deletions
+3 -2
View File
@@ -5,7 +5,7 @@ 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
gcc bash-gitonly.c nargv/argvt.o -I . -L/usr/server/postgresql/lib -I/usr/server/postgresql/include -lpq -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
@@ -16,5 +16,6 @@ auth-keys-gen: authKeysPg.c
install: all
cp pam_oath_key.so /lib/security
cp pam_oath_key.so /usr/libraries/lib/security/
cp bash-gitonly /srv/git/bin
cp auth-keys-gen /srv/etc/
cp auth-keys-gen /srv/etc/auth-git-keys