diff options
author | Stef Walter <stef@memberwebs.com> | 2004-05-19 17:27:00 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-05-19 17:27:00 +0000 |
commit | e70562b7b93e79372e230738038c62cf80436088 (patch) | |
tree | cd06dcfec1089712026e33643547c46d85d7820a /srcx/util.h | |
parent | 571095097eb025a6f1a4fbc24737084a1e367a9f (diff) |
Proper preparing of kvm for jail
Diffstat (limited to 'srcx/util.h')
-rw-r--r-- | srcx/util.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/srcx/util.h b/srcx/util.h index fed9261..0696438 100644 --- a/srcx/util.h +++ b/srcx/util.h @@ -39,14 +39,16 @@ #ifndef __UTIL_H__ #define __UTIL_H__ -#include <sys/jail.h> -#include <kvm.h> +struct xprison; int translate_jail_name(const char* str); int running_in_jail(); -kvm_t* open_kvm_handle(const char* jail, char* errbuf); -size_t get_jail_sysctl(struct xprison** ret); +size_t get_jail_sysctl(struct xprison** xp); +void free_jail_sysctl(size_t len, struct xprison* xp); + +int kvm_prepare_jail(struct xprison* xp); +struct xprison* find_jail(const char* str, size_t len, struct xprison* xp); #define JAIL_RUN_CONSOLE 0x00000001 /* Output stuff to the jail console if available */ #define JAIL_RUN_STDOUT 0x00000002 /* Output to stdout */ |