summaryrefslogtreecommitdiff
path: root/ssh-sandbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-sandbox.h')
-rw-r--r--ssh-sandbox.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/ssh-sandbox.h b/ssh-sandbox.h
index dfecd5aa0..7ee4460d8 100644
--- a/ssh-sandbox.h
+++ b/ssh-sandbox.h
@@ -15,9 +15,24 @@
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 */ 16 */
17 17
18struct ssh_sandbox; 18typedef struct Sandbox Sandbox;
19 19
20struct ssh_sandbox *ssh_sandbox_init(void); 20struct Sandbox {
21void ssh_sandbox_child(struct ssh_sandbox *); 21 const char *name;
22void ssh_sandbox_parent_finish(struct ssh_sandbox *); 22 int (*probe)(void);
23void ssh_sandbox_parent_preauth(struct ssh_sandbox *, pid_t); 23 void *(*init)(void);
24 void (*child)(void *);
25 void (*parent_finish)(void *);
26 void (*parent_preauth)(void *, pid_t);
27};
28
29void *ssh_sandbox_init(void);
30void ssh_sandbox_child(void *);
31void ssh_sandbox_parent_finish(void *);
32void ssh_sandbox_parent_preauth(void *, pid_t);
33
34extern Sandbox ssh_sandbox_systrace;
35extern Sandbox ssh_sandbox_darwin;
36extern Sandbox ssh_sandbox_seccomp_filter;
37extern Sandbox ssh_sandbox_rlimit;
38extern Sandbox ssh_sandbox_null;