From 54b369c1ae6658de5968f127fb36ce41a8a4a01d Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Thu, 5 Apr 2007 21:34:54 +0000 Subject: [PATCH] Make prison_find() globally accessible. --- sys/kern/kern_jail.c | 3 +-- sys/sys/jail.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index 4170bfec64da..8b6a9b1f54a1 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -85,7 +85,6 @@ int prisoncount = 0; static void init_prison(void *); static void prison_complete(void *context, int pending); -static struct prison *prison_find(int); static int sysctl_jail_list(SYSCTL_HANDLER_ARGS); static void @@ -256,7 +255,7 @@ jail_attach(struct thread *td, struct jail_attach_args *uap) /* * Returns a locked prison instance, or NULL on failure. */ -static struct prison * +struct prison * prison_find(int prid) { struct prison *pr; diff --git a/sys/sys/jail.h b/sys/sys/jail.h index b9a5858743a9..bdc42400f8ec 100644 --- a/sys/sys/jail.h +++ b/sys/sys/jail.h @@ -105,6 +105,7 @@ int prison_check(struct ucred *cred1, struct ucred *cred2); int prison_canseemount(struct ucred *cred, struct mount *mp); void prison_enforce_statfs(struct ucred *cred, struct mount *mp, struct statfs *sp); +struct prison *prison_find(int prid); void prison_free(struct prison *pr); u_int32_t prison_getip(struct ucred *cred); void prison_hold(struct prison *pr);