Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2008 12:10:31 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 134773 for review
Message-ID:  <200802041210.m14CAV7q062483@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=134773

Change 134773 by rwatson@rwatson_sesame on 2008/02/04 12:10:18

	Submit chicken scratchings I found on an old notebook.  Nothing to
	see, move along.

Affected files ...

.. //depot/projects/trustedbsd/acl_nfsv4/src/sys/sys/acl.h#6 edit

Differences ...

==== //depot/projects/trustedbsd/acl_nfsv4/src/sys/sys/acl.h#6 (text+ko) ====

@@ -1,5 +1,5 @@
 /*-
- * Copyright (c) 1999-2001, 2005 Robert N. M. Watson
+ * Copyright (c) 1999-2001, 2005-2006 Robert N. M. Watson
  * All rights reserved.
  *
  * This software was developed by Robert Watson for the TrustedBSD Project.
@@ -57,13 +57,23 @@
 };
 typedef struct acl_entry	*acl_entry_t;
 
-/* internal ACL structure */
-struct acl {
+/*
+ * In the first FreeBSD POSIX.1e implementation, there was a fixed maximum
+ * number of ACEs in the ACL array, ACL_MAX_ENTRIES.  In the new version, a
+ * variable sizes storage array is supported.  An old version of the
+ * structure is provided for compatibility purposes.
+ */
+struct acl_old {
 	int			acl_cnt;
 	struct acl_entry	acl_entry[ACL_MAX_ENTRIES];
 };
 
-/* external ACL structure */
+struct acl {
+	int			acl_len;	/* Space for ACEs in array. */
+	int			acl_cnt;	/* In use ACEs in array. */
+	struct acl_entry	*acl_entries;	/* ACE array. */
+};
+
 struct acl_t_struct {
 	struct acl		ats_acl;
 	int			ats_cur_entry;
@@ -75,6 +85,7 @@
  */
 #define	ACL_TYPE_ACCESS		0x00000000
 #define	ACL_TYPE_DEFAULT	0x00000001
+#define	ACL_TYPE_NFSV4		0x00000002
 
 /*
  * Possible entry_id values for acl_get_entry()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802041210.m14CAV7q062483>