mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-25 03:05:46 +08:00
Disable user credentials and use default values
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user