Functions | Variables
run_command.c File Reference
#include "syshead.h"
#include "buffer.h"
#include "error.h"
#include "platform.h"
#include "win32.h"
#include "memdbg.h"
#include "run_command.h"
Include dependency graph for run_command.c:

Go to the source code of this file.


int script_security (void)
void script_security_set (int level)
static const char * system_error_message (int stat, struct gc_arena *gc)
bool openvpn_execve_allowed (const unsigned int flags)
int openvpn_execve_check (const struct argv *a, const struct env_set *es, const unsigned int flags, const char *error_message)
int openvpn_popen (const struct argv *a, const struct env_set *es)


static int script_security_level = SSEC_BUILT_IN

Function Documentation

◆ openvpn_execve_allowed()

bool openvpn_execve_allowed ( const unsigned int  flags)

Definition at line 110 of file run_command.c.

References S_SCRIPT, script_security(), SSEC_BUILT_IN, and SSEC_SCRIPTS.

Referenced by openvpn_execve().

◆ openvpn_execve_check()

int openvpn_execve_check ( const struct argv a,
const struct env_set es,
const unsigned int  flags,
const char *  error_message 

◆ openvpn_popen()

int openvpn_popen ( const struct argv a,
const struct env_set es 

◆ script_security()

int script_security ( void  )

◆ script_security_set()

void script_security_set ( int  level)

Definition at line 49 of file run_command.c.

References script_security_level.

Referenced by add_option().

◆ system_error_message()

static const char* system_error_message ( int  stat,
struct gc_arena gc 

Variable Documentation

◆ script_security_level

int script_security_level = SSEC_BUILT_IN

Definition at line 40 of file run_command.c.

Referenced by script_security(), and script_security_set().