According to the sys/kern/capabilities.conf, gethostid(3) should be allowed.

Pointed out by:	Milosz Kaniewski <m.kaniewski@wheelsystems.com>
Approved by:	pjd (mentor)
MFC after:	3 days
Sponsored by:	Wheel Systems, http://wheelsystems.com
This commit is contained in:
Mariusz Zaborski 2016-02-23 22:02:25 +00:00
parent 6971a63795
commit 94e6fdd806
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295934

View File

@ -422,7 +422,7 @@ sysctl_hostid(SYSCTL_HANDLER_ARGS)
}
SYSCTL_PROC(_kern, KERN_HOSTID, hostid,
CTLTYPE_ULONG | CTLFLAG_RW | CTLFLAG_PRISON | CTLFLAG_MPSAFE,
CTLTYPE_ULONG | CTLFLAG_RW | CTLFLAG_PRISON | CTLFLAG_MPSAFE | CTFLAG_CAPRD,
NULL, 0, sysctl_hostid, "LU", "Host ID");
/*