svn commit: r295934 - head/sys/kern
Bryan Drewery
bdrewery at FreeBSD.org
Tue Feb 23 23:38:08 UTC 2016
On 2/23/2016 2:02 PM, Mariusz Zaborski wrote:
> Author: oshogbo
> Date: Tue Feb 23 22:02:25 2016
> New Revision: 295934
> URL: https://svnweb.freebsd.org/changeset/base/295934
>
> Log:
> According to the sys/kern/capabilities.conf, gethostid(3) should be allowed.
>
> Pointed out by: Milosz Kaniewski <m.kaniewski at wheelsystems.com>
> Approved by: pjd (mentor)
> MFC after: 3 days
> Sponsored by: Wheel Systems, http://wheelsystems.com
>
> Modified:
> head/sys/kern/kern_mib.c
>
> Modified: head/sys/kern/kern_mib.c
> ==============================================================================
> --- head/sys/kern/kern_mib.c Tue Feb 23 21:21:47 2016 (r295933)
> +++ head/sys/kern/kern_mib.c Tue Feb 23 22:02:25 2016 (r295934)
> @@ -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,
It is spelled wrong. Fixed in r295941, be sure to MFC that too.
> NULL, 0, sysctl_hostid, "LU", "Host ID");
>
> /*
>
--
Regards,
Bryan Drewery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20160223/2e5fdb5c/attachment.sig>
More information about the svn-src-head
mailing list