blob: 1ac02c52ebac5ccc019d894d435d1e7960526a3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef __UTIL_H__
#define __UTIL_H__
int translate_jail_name(const char* str);
int running_in_jail();
/* Output stuff to the jail console if available */
#define JAIL_OUT_CONSOLE 1 << 1
/* Output to stdout */
#define JAIL_OUT_STDOUT 1 << 2
/* Output to stderr */
#define JAIL_OUT_STDERR 1 << 3
int run_jail_command(const char* jail, const char* script, int opts);
int check_jail_command(const char* jail, const char* script);
#endif __UTIL_H__
|