#include "../include/helpers.h"
#include "../include/pam_netns_module.h"
#include <sys/capability.h>
#include <netinet/ip.h>
Functions | |
void | cleanup (void) |
int | main (int argc, const char **argv) |
Variables | |
options_t | pam_netns_options |
Pam netns helper implementation.
void cleanup | ( | void | ) |
int main | ( | int | argc, | |
const char ** | argv | |||
) |
if (getuid() != geteuid()) { if (setreuid(geteuid(), geteuid()) < 0) { logerr("%s %d: %s", gettext("Can't set uid to"), geteuid(), strerror(errno)); exit(EXIT_FAILURE); } }