diff options
author | pjd <pjd@FreeBSD.org> | 2007-04-05 21:34:54 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-04-05 21:34:54 +0000 |
commit | 21853869a055c16dd224b254703d3ae20ae2bda9 (patch) | |
tree | b37368b1daf3ef29cb53b937801fa9cf9134a7af | |
parent | 98524ca0174b9126ff629672cf948af642fcff5e (diff) | |
download | FreeBSD-src-21853869a055c16dd224b254703d3ae20ae2bda9.zip FreeBSD-src-21853869a055c16dd224b254703d3ae20ae2bda9.tar.gz |
Make prison_find() globally accessible.
-rw-r--r-- | sys/kern/kern_jail.c | 3 | ||||
-rw-r--r-- | 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 4170bfe..8b6a9b1 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 @@ e_unlock: /* * 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 b9a5858..bdc4240 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); |