mirror of
https://git.kernel.org/pub/scm/libs/libcap/libcap.git
synced 2026-01-27 18:04:43 +00:00
Note, I've been confused about the capset/capget system calls. It would seem that the current way(TM) is to get the raw API from libc.
13 lines
240 B
C
13 lines
240 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <security/pam_modules.h>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
if (pam_sm_authenticate(NULL, 0, 0, NULL) != PAM_SUCCESS) {
|
|
printf("failed to authenticate\n");
|
|
exit(1);
|
|
}
|
|
exit(0);
|
|
}
|