If the pam library is not linked with -lpthread option, the command
succeeds. If it is linked with, the su command makes nothing and I
need to make a <CTRL>+C to unlock the XTerm.
I obtain the same think if I make a dynamic load of a library. You can
find enclosed my makefile. Any suggestion about this would be greatly
appreciated.
Thanks
Mathieu
#
# Makefile pour pam_test.so
#
pam_test.so: pam_test.o support.o
gcc -shared -Xlinker -x pam_test.o support.o -ldl -lpthread -lpam -o
pam_test.so
pam_test.o: pam_test.c
gcc -fPIC -I/usr/include -I/usr/include/pkcs11 -DLINUX -Wall -c
pam_test.c
support.o: support.c
gcc -c -I/usr/include -I/usr/include/pkcs11 -DLINUX -Wall support.c
install:
cp -f pam_test.so /lib/security
clean:
rm *.o *.so