Functions | Variables

src/pam_netns_helper.c File Reference

#include "../include/helpers.h"
#include "../include/pam_netns_module.h"
#include <sys/capability.h>
#include <netinet/ip.h>
Include dependency graph for pam_netns_helper.c:

Functions

void cleanup (void)
int main (int argc, const char **argv)

Variables

options_t pam_netns_options

Detailed Description

Pam netns helper implementation.

Author:
Wilhelm Meier
Julian Thome
Date:
2010-08-25

Function Documentation

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); } }


Variable Documentation