svn commit: r255219 - in head: contrib/tcpdump lib/libc lib/libc/capability lib/libc/include lib/libc/sys lib/libprocstat sbin/dhclient sbin/hastd sys/amd64/linux32 sys/bsm sys/cddl/compat/opensola...

Alexey Dokuchaev danfe at FreeBSD.org
Fri Sep 6 04:43:54 UTC 2013


On Thu, Sep 05, 2013 at 12:09:57AM +0000, Pawel Jakub Dawidek wrote:
> Author: pjd
> Date: Thu Sep  5 00:09:56 2013
> New Revision: 255219
> URL: http://svnweb.freebsd.org/changeset/base/255219
> 
> Log:
>   Change the cap_rights_t type from uint64_t to a structure that we can extend
>   in the future in a backward compatible (API and ABI) way.
>   
>   The cap_rights_t represents capability rights. We used to use one bit to
>   represent one right, but we are running out of spare bits. Currently the new
>   structure provides place for 114 rights (so 50 more than the previous
>   cap_rights_t), but it is possible to grow the structure to hold at least 285
>   rights, although we can make it even larger if 285 rights won't be enough.
>   
>   The structure definition looks like this:
>   
>   	struct cap_rights {
>   		uint64_t	cr_rights[CAP_RIGHTS_VERSION + 2];
>   	};

I believe this commit broke nvidia-driver.  Fix is trivial; however, I would
have to use OSVERSION from Sep 3rd, since you forgot to update sys/param.h.

./danfe


More information about the svn-src-head mailing list