Deleted Added
full compact
40c40
< * $FreeBSD: head/sys/kern/kern_mib.c 52128 1999-10-11 15:19:12Z peter $
---
> * $FreeBSD: head/sys/kern/kern_mib.c 57111 2000-02-10 05:32:03Z rwatson $
147a148,152
> static int jailcansethostname=1;
> SYSCTL_INT(_kern, KERN_JAILCANSETHOSTNAME, jailcansethostname,
> CTLFLAG_RW, &jailcansethostname, 0,
> "Jail can set its hostname");
>
155c160,162
< if (req->p->p_prison)
---
> if (req->p->p_prison) {
> if (!jailcansethostname)
> return(EPERM);
159c166
< else
---
> } else