Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/kern_mib.c
Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Lines | FOREACH_PRISON_DESCENDANT_LOCKED(pr, cpr, descend) | ||||
bcopy(tmpname, (char *)cpr + pr_offset, len); | bcopy(tmpname, (char *)cpr + pr_offset, len); | ||||
mtx_unlock(&pr->pr_mtx); | mtx_unlock(&pr->pr_mtx); | ||||
sx_sunlock(&allprison_lock); | sx_sunlock(&allprison_lock); | ||||
} | } | ||||
return (error); | return (error); | ||||
} | } | ||||
SYSCTL_PROC(_kern, KERN_HOSTNAME, hostname, | SYSCTL_PROC(_kern, KERN_HOSTNAME, hostname, | ||||
CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_PRISON | CTLFLAG_MPSAFE, | CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_PRISON | CTLFLAG_CAPRD | CTLFLAG_MPSAFE, | ||||
(void *)(offsetof(struct prison, pr_hostname)), MAXHOSTNAMELEN, | (void *)(offsetof(struct prison, pr_hostname)), MAXHOSTNAMELEN, | ||||
sysctl_hostname, "A", "Hostname"); | sysctl_hostname, "A", "Hostname"); | ||||
SYSCTL_PROC(_kern, KERN_NISDOMAINNAME, domainname, | SYSCTL_PROC(_kern, KERN_NISDOMAINNAME, domainname, | ||||
CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_PRISON | CTLFLAG_MPSAFE, | CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_PRISON | CTLFLAG_CAPRD | CTLFLAG_MPSAFE, | ||||
(void *)(offsetof(struct prison, pr_domainname)), MAXHOSTNAMELEN, | (void *)(offsetof(struct prison, pr_domainname)), MAXHOSTNAMELEN, | ||||
sysctl_hostname, "A", "Name of the current YP/NIS domain"); | sysctl_hostname, "A", "Name of the current YP/NIS domain"); | ||||
SYSCTL_PROC(_kern, KERN_HOSTUUID, hostuuid, | SYSCTL_PROC(_kern, KERN_HOSTUUID, hostuuid, | ||||
CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_PRISON | CTLFLAG_MPSAFE, | CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_PRISON | CTLFLAG_CAPRD | CTLFLAG_MPSAFE, | ||||
(void *)(offsetof(struct prison, pr_hostuuid)), HOSTUUIDLEN, | (void *)(offsetof(struct prison, pr_hostuuid)), HOSTUUIDLEN, | ||||
sysctl_hostname, "A", "Host UUID"); | sysctl_hostname, "A", "Host UUID"); | ||||
static int regression_securelevel_nonmonotonic = 0; | static int regression_securelevel_nonmonotonic = 0; | ||||
#ifdef REGRESSION | #ifdef REGRESSION | ||||
SYSCTL_INT(_regression, OID_AUTO, securelevel_nonmonotonic, CTLFLAG_RW, | SYSCTL_INT(_regression, OID_AUTO, securelevel_nonmonotonic, CTLFLAG_RW, | ||||
®ression_securelevel_nonmonotonic, 0, "securelevel may be lowered"); | ®ression_securelevel_nonmonotonic, 0, "securelevel may be lowered"); | ||||
▲ Show 20 Lines • Show All 258 Lines • Show Last 20 Lines |