Disable user credentials and use default values

This commit is contained in:
Sebastian Huber
2013-10-10 16:11:02 +02:00
parent cc5f4b2705
commit 69b29a0c0d
25 changed files with 136 additions and 2334 deletions

View File

@@ -114,7 +114,7 @@ int
prison_flag(struct ucred *cred, unsigned flag)
{
/* This is an atomic read, so no locking is necessary. */
return (cred->cr_prison->pr_flags & flag);
return (prison0.pr_flags & flag);
}
void
@@ -154,15 +154,6 @@ prison_saddrsel_ip6(struct ucred *cred, struct in6_addr *ia6)
return EAFNOSUPPORT;
}
/*
* Return true if pr1 and pr2 have the same IPv4 address restrictions.
*/
int
prison_equal_ip4(struct prison *pr1, struct prison *pr2)
{
return 1;
}
/*
* Check if given address belongs to the jail referenced by cred/prison.
*
@@ -213,15 +204,6 @@ prison_remote_ip4(struct ucred *cred, struct in_addr *ia)
return 0;
}
/*
* Return true if pr1 and pr2 have the same IPv6 address restrictions.
*/
int
prison_equal_ip6(struct prison *pr1, struct prison *pr2)
{
return 1;
}
/*
* Make sure our (source) address is set to something meaningful to this jail.
*