PERFORCE change 133878 for review
Robert Watson
rwatson at FreeBSD.org
Tue Jan 22 09:15:11 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133878
Change 133878 by rwatson at rwatson_freebsd_capabilities on 2008/01/22 17:14:10
When using big unsigned constants, mark with ULL.
Affected files ...
.. //depot/projects/trustedbsd/capabilities/src/sys/sys/capability.h#7 edit
Differences ...
==== //depot/projects/trustedbsd/capabilities/src/sys/sys/capability.h#7 (text+ko) ====
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/capabilities/src/sys/sys/capability.h#6 $
+ * $P4: //depot/projects/trustedbsd/capabilities/src/sys/sys/capability.h#7 $
*/
/*
@@ -42,49 +42,49 @@
/*
* Possibly rights on capabilities.
*/
-#define CAP_READ 0x0000000000000001 /* read/recv */
-#define CAP_WRITE 0x0000000000000002 /* write/send */
-#define CAP_FCHDIR 0x0000000000000004 /* fchdir */
-#define CAP_SEEK 0x0000000000000008 /* lseek, various io */
-#define CAP_GETPEERNAME 0x0000000000000010 /* getpeername */
-#define CAP_GETSOCKNAME 0x0000000000000020 /* getsockname */
-#define CAP_FCHFLAGS 0x0000000000000040 /* fchflags */
-#define CAP_IOCTL 0x0000000000000080 /* ioctl */
-#define CAP_FSTAT 0x0000000000000100 /* fstat */
-#define CAP_MMAP 0x0000000000000200 /* mmap */
-#define CAP_FCNTL 0x0000000000000400 /* fcntl */
-#define CAP_EVENT 0x0000000000000800 /* select/poll */
-#define CAP_FSYNC 0x0000000000001000 /* fsync */
-#define CAP_FCHOWN 0x0000000000002000 /* fchown */
-#define CAP_FCHMOD 0x0000000000004000 /* fchmod */
-#define CAP_FTRUNCATE 0x0000000000008000 /* ftruncate */
-#define CAP_FLOCK 0x0000000000010000 /* flock */
-#define CAP_GETDIRENTRIES 0x0000000000020000 /* getdirentries */
-#define CAP_FSTATFS 0x0000000000040000 /* fstatfs */
-#define _CAP_UNUSED0 0x0000000000080000
-#define _CAP_UNUSED1 0x0000000000100000
-#define CAP_FPATHCONF 0x0000000000200000 /* fpathconf */
-#define CAP_FUTIMES 0x0000000000400000 /* futimes */
-#define CAP_AIO 0x0000000000800000 /* aio_* */
-#define CAP_ACL_GET 0x0000000001000000 /* acl_get_fd */
-#define CAP_ACL_SET 0x0000000002000000 /* acl_set_fd */
-#define CAP_ACL_DELETE 0x0000000004000000 /* acl_delete_fd */
-#define CAP_ACL_CHECK 0x0000000008000000 /* acl_list_fd */
-#define CAP_EXTATTR_GET 0x0000000010000000 /* extattr_get_fd */
-#define CAP_EXTATTR_SET 0x0000000020000000 /* extattr_set_fd */
-#define CAP_EXTATTR_DELETE 0x0000000040000000 /* extattr_delete_fd */
-#define CAP_EXTATTR_LIST 0x0000000080000000 /* extattr_list_fd */
-#define CAP_MAC_GET 0x0000000100000000 /* mac_get_fd */
-#define CAP_MAC_SET 0x0000000200000000 /* mac_set_fd */
-#define CAP_ACCEPT 0x0000000400000000 /* accept */
-#define CAP_CONNECT 0x0000000800000000 /* connect/sendto */
-#define CAP_BIND 0x0000001000000000 /* bind */
-#define CAP_GETSOCKOPT 0x0000002000000000 /* getsockopt */
-#define CAP_SETSOCKOPT 0x0000004000000000 /* setsockopt */
-#define CAP_LISTEN 0x0000008000000000 /* listen */
-#define CAP_SHUTDOWN 0x0000010000000000 /* shutdown */
-#define CAP_PEELOFF 0x0000020000000000 /* sctp_peeloff */
-#define CAP_MASK_VALID 0x000003ffffe7ffff
+#define CAP_READ 0x0000000000000001ULL /* read/recv */
+#define CAP_WRITE 0x0000000000000002ULL /* write/send */
+#define CAP_FCHDIR 0x0000000000000004ULL /* fchdir */
+#define CAP_SEEK 0x0000000000000008ULL /* lseek, various io */
+#define CAP_GETPEERNAME 0x0000000000000010ULL /* getpeername */
+#define CAP_GETSOCKNAME 0x0000000000000020ULL /* getsockname */
+#define CAP_FCHFLAGS 0x0000000000000040ULL /* fchflags */
+#define CAP_IOCTL 0x0000000000000080ULL /* ioctl */
+#define CAP_FSTAT 0x0000000000000100ULL /* fstat */
+#define CAP_MMAP 0x0000000000000200ULL /* mmap */
+#define CAP_FCNTL 0x0000000000000400ULL /* fcntl */
+#define CAP_EVENT 0x0000000000000800ULL /* select/poll */
+#define CAP_FSYNC 0x0000000000001000ULL /* fsync */
+#define CAP_FCHOWN 0x0000000000002000ULL /* fchown */
+#define CAP_FCHMOD 0x0000000000004000ULL /* fchmod */
+#define CAP_FTRUNCATE 0x0000000000008000ULL /* ftruncate */
+#define CAP_FLOCK 0x0000000000010000ULL /* flock */
+#define CAP_GETDIRENTRIES 0x0000000000020000ULL /* getdirentries */
+#define CAP_FSTATFS 0x0000000000040000ULL /* fstatfs */
+#define _CAP_UNUSED0 0x0000000000080000ULL
+#define _CAP_UNUSED1 0x0000000000100000ULL
+#define CAP_FPATHCONF 0x0000000000200000ULL /* fpathconf */
+#define CAP_FUTIMES 0x0000000000400000ULL /* futimes */
+#define CAP_AIO 0x0000000000800000ULL /* aio_* */
+#define CAP_ACL_GET 0x0000000001000000ULL /* acl_get_fd */
+#define CAP_ACL_SET 0x0000000002000000ULL /* acl_set_fd */
+#define CAP_ACL_DELETE 0x0000000004000000ULL /* acl_delete_fd */
+#define CAP_ACL_CHECK 0x0000000008000000ULL /* acl_list_fd */
+#define CAP_EXTATTR_GET 0x0000000010000000ULL /* extattr_get_fd */
+#define CAP_EXTATTR_SET 0x0000000020000000ULL /* extattr_set_fd */
+#define CAP_EXTATTR_DELETE 0x0000000040000000ULL /* extattr_delete_fd */
+#define CAP_EXTATTR_LIST 0x0000000080000000ULL /* extattr_list_fd */
+#define CAP_MAC_GET 0x0000000100000000ULL /* mac_get_fd */
+#define CAP_MAC_SET 0x0000000200000000ULL /* mac_set_fd */
+#define CAP_ACCEPT 0x0000000400000000ULL /* accept */
+#define CAP_CONNECT 0x0000000800000000ULL /* connect/sendto */
+#define CAP_BIND 0x0000001000000000ULL /* bind */
+#define CAP_GETSOCKOPT 0x0000002000000000ULL /* getsockopt */
+#define CAP_SETSOCKOPT 0x0000004000000000ULL /* setsockopt */
+#define CAP_LISTEN 0x0000008000000000ULL /* listen */
+#define CAP_SHUTDOWN 0x0000010000000000ULL /* shutdown */
+#define CAP_PEELOFF 0x0000020000000000ULL /* sctp_peeloff */
+#define CAP_MASK_VALID 0x000003ffffe7ffffULL
/*
* Notes:
More information about the p4-projects
mailing list