diff options
Diffstat (limited to 'srcx/util.h')
-rw-r--r-- | srcx/util.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/srcx/util.h b/srcx/util.h index c98dad1..cc359b1 100644 --- a/srcx/util.h +++ b/srcx/util.h @@ -44,11 +44,16 @@ struct xprison; int translate_jail_name(const char* str); int running_in_jail(); -size_t get_jail_sysctl(struct xprison** xp); -void free_jail_sysctl(size_t len, struct xprison* xp); +typedef struct jails { + void *data; + size_t length; + struct xprison *last; +} jails; -int kvm_prepare_jail(struct xprison* xp); -struct xprison* find_jail(const char* str, size_t len, struct xprison* xp); +void jails_load(jails *jls); +struct xprison* jails_next(jails *jls); +struct xprison* jails_find(jails *jls, const char *str); +void jails_done(jails *jls); #define JAIL_RUN_CONSOLE 0x00000001 /* Output stuff to the jail console if available */ #define JAIL_RUN_STDOUT 0x00000002 /* Output to stdout */ |