Make prison_find() globally accessible.
This commit is contained in:
parent
4e9f341722
commit
54b369c1ae
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user