Added prison_check_af and jailed methods.

This commit is contained in:
Jennifer Averett
2012-04-05 12:06:30 -05:00
parent aa34b6b71b
commit b783f05c3c

View File

@@ -294,3 +294,24 @@ prison_check(struct ucred *cred1, struct ucred *cred2)
{ {
return 0; return 0;
} }
/*
* Check if a jail supports the given address family.
*
* Returns 0 if not jailed or the address family is supported, EAFNOSUPPORT
* if not.
*/
int
prison_check_af(struct ucred *cred, int af)
{
return 0;
}
/*
* Return 1 if the passed credential is in a jail, otherwise 0.
*/
int
jailed(struct ucred *cred)
{
return 0;
}