/
githubmirror
/
linux-pam
Обзор
Документация
Войти
/
githubmirror
/
linux-pam
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v1.1.6
dynamic/test.c
27 строк
502 B
Dmitry V. Levin
Fix whitespace issues
27 окт 2011, 03:56
27 окт 2011, 03:56
1814aec
Код
Авторство
О чём код?
#include <stdio.h> #include <dlfcn.h> #include <unistd.h> #include <security/pam_appl.h> #include <security/pam_misc.h> int main(int argc, char **argv) { void *handle; handle = dlopen("./pam.so", RTLD_NOW); if (handle == NULL) { fprintf(stderr, "failed to load pam.so: %s\n", dlerror()); exit(1); } /* handle->XXX points to each of the PAM functions */ if (dlclose(handle)) { fprintf(stderr, "failed to unload pam.so: %s\n", dlerror()); exit(1); } exit(0); }