Date: Fri, 1 Jul 2011 12:13:48 +0000 (UTC) From: Jonathan Anderson <jonathan@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r223710 - head/sys/sys Message-ID: <201107011213.p61CDmXj090766@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jonathan Date: Fri Jul 1 12:13:48 2011 New Revision: 223710 URL: http://svn.freebsd.org/changeset/base/223710 Log: Define cap_rights_t and DTYPE_CAPABILITY, which are required to implement Capsicum capabilities. Approved by: mentor (rwatson), re (bz) Modified: head/sys/sys/_types.h head/sys/sys/file.h head/sys/sys/types.h Modified: head/sys/sys/_types.h ============================================================================== --- head/sys/sys/_types.h Fri Jul 1 10:57:10 2011 (r223709) +++ head/sys/sys/_types.h Fri Jul 1 12:13:48 2011 (r223710) @@ -38,6 +38,7 @@ typedef __uint32_t __blksize_t; /* file block size */ typedef __int64_t __blkcnt_t; /* file block count */ typedef __int32_t __clockid_t; /* clock_gettime()... */ +typedef __uint64_t __cap_rights_t; /* capability rights */ typedef __uint32_t __fflags_t; /* file flags */ typedef __uint64_t __fsblkcnt_t; typedef __uint64_t __fsfilcnt_t; Modified: head/sys/sys/file.h ============================================================================== --- head/sys/sys/file.h Fri Jul 1 10:57:10 2011 (r223709) +++ head/sys/sys/file.h Fri Jul 1 12:13:48 2011 (r223710) @@ -64,6 +64,7 @@ struct socket; #define DTYPE_SEM 9 /* posix semaphore */ #define DTYPE_PTS 10 /* pseudo teletype master device */ #define DTYPE_DEV 11 /* Device specific fd type */ +#define DTYPE_CAPABILITY 12 /* capability */ #ifdef _KERNEL Modified: head/sys/sys/types.h ============================================================================== --- head/sys/sys/types.h Fri Jul 1 10:57:10 2011 (r223709) +++ head/sys/sys/types.h Fri Jul 1 12:13:48 2011 (r223710) @@ -89,6 +89,8 @@ typedef __blkcnt_t blkcnt_t; #define _BLKCNT_T_DECLARED #endif +typedef __cap_rights_t cap_rights_t; + #ifndef _CLOCK_T_DECLARED typedef __clock_t clock_t; #define _CLOCK_T_DECLARED
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107011213.p61CDmXj090766>