OpenVPN
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.

Functions

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)
 
bool 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)
 

Variables

static int script_security_level = SSEC_BUILT_IN
 

Function Documentation

◆ openvpn_execve_allowed()

bool openvpn_execve_allowed ( const unsigned int  flags)

◆ openvpn_execve_check()

bool 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 51 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 
)
static

Definition at line 60 of file run_command.c.

References alloc_buf_gc(), buf_printf(), and buffer::data.

Referenced by openvpn_execve_check().

Variable Documentation

◆ script_security_level

int script_security_level = SSEC_BUILT_IN
static

Definition at line 42 of file run_command.c.

Referenced by script_security(), and script_security_set().