2 Unix SMB/Netbios implementation.
4 Portable SMB ACL interface
5 Copyright (C) Jeremy Allison 2000
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #if defined(HAVE_POSIX_ACLS)
29 /* This is an identity mapping (just remove the SMB_). */
31 #define SMB_ACL_TAG_T acl_tag_t
32 #define SMB_ACL_TYPE_T acl_type_t
33 #define SMB_ACL_PERMSET_T acl_permset_t
34 #define SMB_ACL_PERM_T acl_perm_t
35 #define SMB_ACL_READ ACL_READ
36 #define SMB_ACL_WRITE ACL_WRITE
37 #define SMB_ACL_EXECUTE ACL_EXECUTE
40 #define SMB_ACL_USER ACL_USER
41 #define SMB_ACL_USER_OBJ ACL_USER_OBJ
42 #define SMB_ACL_GROUP ACL_GROUP
43 #define SMB_ACL_GROUP_OBJ ACL_GROUP_OBJ
44 #define SMB_ACL_OTHER ACL_OTHER
45 #define SMB_ACL_MASK ACL_MASK
47 #define SMB_ACL_T acl_t
49 #define SMB_ACL_ENTRY_T acl_entry_t
51 #define SMB_ACL_FIRST_ENTRY ACL_FIRST_ENTRY
52 #define SMB_ACL_NEXT_ENTRY ACL_NEXT_ENTRY
54 #define SMB_ACL_TYPE_ACCESS ACL_TYPE_ACCESS
55 #define SMB_ACL_TYPE_DEFAULT ACL_TYPE_DEFAULT
57 #elif defined(HAVE_SOLARIS_ACLS)
59 #elif defined(HAVE_IRIX_ACLS)
63 /* No ACLS - fake it. */
64 #define SMB_ACL_TAG_T int
65 #define SMB_ACL_TYPE_T int
66 #define SMB_ACL_PERMSET_T mode_t
67 #define SMB_ACL_PERM_T mode_t
68 #define SMB_ACL_READ S_IRUSR
69 #define SMB_ACL_WRITE S_IWUSR
70 #define SMB_ACL_EXECUTE S_IXUSR
73 #define SMB_ACL_USER 0
74 #define SMB_ACL_USER_OBJ 1
75 #define SMB_ACL_GROUP 2
76 #define SMB_ACL_GROUP_OBJ 3
77 #define SMB_ACL_OTHER 4
78 #define SMB_ACL_MASK 5
80 typedef struct SMB_ACL_T {
84 typedef struct SMB_ACL_ENTRY_T {
88 #define SMB_ACL_FIRST_ENTRY 0
89 #define SMB_ACL_NEXT_ENTRY 1
91 #define SMB_ACL_TYPE_ACCESS 0
92 #define SMB_ACL_TYPE_DEFAULT 1
95 #endif /* _SMB_ACLS_H */