#include <errno.h>
#include <grp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <atalk/logger.h>
#include <atalk/util.h>
Macros | |
#define | USE_SETEUID 1 |
Functions | |
static int | setup_out_fd (void) |
static void | gain_root_privilege (void) |
static void | gain_root_group_privilege (void) |
static int | become_user_permanently (uid_t uid, gid_t gid) |
int | afprun (char *cmd, int *outfd) |
int | afprun_bg (char *cmd) |
#define USE_SETEUID 1 |
int afprun | ( | char * | cmd, |
int * | outfd ) |
int afprun_bg | ( | char * | cmd | ) |
|
static |
|
static |
|
static |
|
static |