|
|
| version 1.1.1.2, 2012/05/29 12:26:49 | version 1.1.1.3, 2012/10/09 09:29:52 |
|---|---|
| Line 41 | Line 41 |
| #include "sudo_debug.h" | #include "sudo_debug.h" |
| #include "gettext.h" | #include "gettext.h" |
| #ifdef HAVE_PRIV_SET | |
| # include <priv.h> | |
| #endif | |
| #ifdef __TANDEM | #ifdef __TANDEM |
| # define ROOT_UID 65535 | # define ROOT_UID 65535 |
| #else | #else |
| Line 149 struct command_details { | Line 153 struct command_details { |
| const char *utmp_user; | const char *utmp_user; |
| char **argv; | char **argv; |
| char **envp; | char **envp; |
| #ifdef HAVE_PRIV_SET | |
| priv_set_t *privs; | |
| priv_set_t *limitprivs; | |
| #endif | |
| }; | }; |
| /* Status passed between parent and child via socketpair */ | /* Status passed between parent and child via socketpair */ |
| Line 157 struct command_status { | Line 165 struct command_status { |
| #define CMD_ERRNO 1 | #define CMD_ERRNO 1 |
| #define CMD_WSTATUS 2 | #define CMD_WSTATUS 2 |
| #define CMD_SIGNO 3 | #define CMD_SIGNO 3 |
| #define CMD_PID 4 | |
| int type; | int type; |
| int val; | int val; |
| }; | }; |
| Line 236 int process_hooks_getenv(const char *name, char **val) | Line 245 int process_hooks_getenv(const char *name, char **val) |
| int process_hooks_setenv(const char *name, const char *value, int overwrite); | int process_hooks_setenv(const char *name, const char *value, int overwrite); |
| int process_hooks_putenv(char *string); | int process_hooks_putenv(char *string); |
| int process_hooks_unsetenv(const char *name); | int process_hooks_unsetenv(const char *name); |
| /* env_hooks.c */ | |
| char *getenv_unhooked(const char *name); | |
| /* interfaces.c */ | /* interfaces.c */ |
| int get_net_ifs(char **addrinfo); | int get_net_ifs(char **addrinfo); |