summaryrefslogtreecommitdiffstats
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-02 23:05:25 +0000
committerJeremy Allison <jra@samba.org>2001-04-02 23:05:25 +0000
commit6c0c14a7425b76da349fbaf1defe3d4efa250764 (patch)
tree70c7e813126eacc78264166fb69ef0a70164d8bb /source3/include
parent9f793948bd34e79be1adecfe41c53cb7ec2636fa (diff)
downloadsamba-6c0c14a7425b76da349fbaf1defe3d4efa250764.tar.gz
samba-6c0c14a7425b76da349fbaf1defe3d4efa250764.tar.xz
samba-6c0c14a7425b76da349fbaf1defe3d4efa250764.zip
IRIX ACLs from Herb.
Jeremy. (This used to be commit 2f2365e93833e5f08dc14ab0022dd9f6f0d028ad)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb_acls.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/source3/include/smb_acls.h b/source3/include/smb_acls.h
index 4469432e361..d7a9c53aaac 100644
--- a/source3/include/smb_acls.h
+++ b/source3/include/smb_acls.h
@@ -133,6 +133,36 @@ typedef struct acl *SMB_ACL_ENTRY_T;
#elif defined(HAVE_IRIX_ACLS)
+#define SMB_ACL_TAG_T acl_tag_t
+#define SMB_ACL_TYPE_T acl_type_t
+#define SMB_ACL_PERMSET_T acl_permset_t
+#define SMB_ACL_PERM_T acl_perm_t
+#define SMB_ACL_READ ACL_READ
+#define SMB_ACL_WRITE ACL_WRITE
+#define SMB_ACL_EXECUTE ACL_EXECUTE
+
+/* Types of ACLs. */
+#define SMB_ACL_USER ACL_USER
+#define SMB_ACL_USER_OBJ ACL_USER_OBJ
+#define SMB_ACL_GROUP ACL_GROUP
+#define SMB_ACL_GROUP_OBJ ACL_GROUP_OBJ
+#define SMB_ACL_OTHER ACL_OTHER_OBJ
+#define SMB_ACL_MASK ACL_MASK
+
+typedef struct SMB_ACL_T {
+ int next;
+ BOOL freeaclp;
+ struct acl *aclp;
+} *SMB_ACL_T;
+
+#define SMB_ACL_ENTRY_T acl_entry_t
+
+#define SMB_ACL_FIRST_ENTRY 0
+#define SMB_ACL_NEXT_ENTRY 1
+
+#define SMB_ACL_TYPE_ACCESS ACL_TYPE_ACCESS
+#define SMB_ACL_TYPE_DEFAULT ACL_TYPE_DEFAULT
+
#else /* No ACLs. */
/* No ACLS - fake it. */