32#define SSEC_BUILT_IN 1
36#define OPENVPN_EXECVE_ERROR -1
37#define OPENVPN_EXECVE_NOT_ALLOWED -2
38#define OPENVPN_EXECVE_FAILURE 127
45#define S_SCRIPT (1<<0)
49#define S_EXITCODE (1<<2)
52#define S_NOWAITPID (1<<3)
60 const unsigned int flags,
const char *error_message);
88 const unsigned int flags,
const char *hook)
93 "WARNING: Failed running command (%s)", hook);
bool openvpn_execve_allowed(const unsigned int flags)
void script_security_set(int level)
static int openvpn_run_script(const struct argv *a, const struct env_set *es, const unsigned int flags, const char *hook)
Will run a script and return the exit code of the script if between 0 and 255, -1 otherwise.
int openvpn_popen(const struct argv *a, const struct env_set *es)
bool openvpn_waitpid_check(pid_t pid, const char *msg_prefix, int msglevel)
Checks if a running process is still running.
int openvpn_execve_check(const struct argv *a, const struct env_set *es, const unsigned int flags, const char *error_message)
int script_security(void)