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.kaniew...@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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to