diff options
author | Jeremy Allison <jra@samba.org> | 2001-02-25 00:24:54 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-02-25 00:24:54 +0000 |
commit | f93bb0801ccd66a6a3709ad98afb3758ffd0c1d4 (patch) | |
tree | c0413e3f95270041843d95f836a86bd791a7f063 /source3/include/smb_acls.h | |
parent | 3699948e97bc2a8d108bb4343d382b4c9ead5533 (diff) | |
download | samba-f93bb0801ccd66a6a3709ad98afb3758ffd0c1d4.tar.gz samba-f93bb0801ccd66a6a3709ad98afb3758ffd0c1d4.tar.bz2 samba-f93bb0801ccd66a6a3709ad98afb3758ffd0c1d4.zip |
rpc_client/cli_netlogon.c: Fixed incorrect printf.
Added Solaris ACL support.
Jeremy.
(This used to be commit f0d11b6997cc46a0210adef8cf572cf8b7e2467a)
Diffstat (limited to 'source3/include/smb_acls.h')
-rw-r--r-- | source3/include/smb_acls.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/source3/include/smb_acls.h b/source3/include/smb_acls.h index 578e9f2751..4469432e36 100644 --- a/source3/include/smb_acls.h +++ b/source3/include/smb_acls.h @@ -95,6 +95,42 @@ typedef struct acl *SMB_ACL_ENTRY_T; #elif defined(HAVE_SOLARIS_ACLS) +/* + * Code donated by Toomas Soome <tsoome@ut.ee>. + * Based on the implementation by Michael Davidson <md@sco.COM> for UnixWare. + */ + +typedef int SMB_ACL_TAG_T; +typedef int SMB_ACL_TYPE_T; +typedef ushort *SMB_ACL_PERMSET_T; +typedef ushort SMB_ACL_PERM_T; +#define SMB_ACL_READ 4 +#define SMB_ACL_WRITE 2 +#define SMB_ACL_EXECUTE 1 + +/* Types of ACLs. */ +#define SMB_ACL_USER USER +#define SMB_ACL_USER_OBJ USER_OBJ +#define SMB_ACL_GROUP GROUP +#define SMB_ACL_GROUP_OBJ GROUP_OBJ +#define SMB_ACL_OTHER OTHER_OBJ +#define SMB_ACL_MASK CLASS_OBJ + +typedef struct SMB_ACL_T { + int size; + int count; + int next; + struct acl acl[1]; +} *SMB_ACL_T; + +typedef struct acl *SMB_ACL_ENTRY_T; + +#define SMB_ACL_FIRST_ENTRY 0 +#define SMB_ACL_NEXT_ENTRY 1 + +#define SMB_ACL_TYPE_ACCESS 0 +#define SMB_ACL_TYPE_DEFAULT 1 + #elif defined(HAVE_IRIX_ACLS) #else /* No ACLs. */ |