2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
11 Information Technology Center
12 Carnegie-Mellon University
20 #define ACL_VERSION "Version 1"
22 struct acl_accessEntry {
23 int id; /*internally-used ID of user or group */
28 The above access list entry format is used in VICE
32 #define ACL_ACLVERSION 1 /*Identifies current format of access lists */
34 struct acl_accessList {
35 int size; /*size of this access list in bytes, including MySize itself */
36 int version; /*to deal with upward compatibility ; <= ACL_ACLVERSION */
38 int positive; /* number of positive entries */
39 int negative; /* number of minus entries */
40 struct acl_accessEntry entries[1]; /* negative entries are stored backwards from end */
44 Used in VICE. This is how acccess lists are stored on secondary storage.
48 #define ACL_MAXENTRIES 20
51 External access lists are just char *'s, with the following format: Begins with a decimal integer in format "%d\n%d\n"
52 specifying the number of positive entries and negative entries that follow. This is followed by the list
53 of entries. Each entry consists of a
54 username or groupname followed by a decimal number representing the rights mask for that name. Each
55 entry in the list looks as if it had been produced by printf() using a format list of "%s\t%d\n".
57 Note that the number of entries must be less than ACL_MAXENTRIES
60 /* This is temporary hack to get around changing the volume package
63 typedef struct acl_accessList AL_AccessList;