2 Unix SMB/CIFS implementation.
3 Portable SMB ACL interface
4 Copyright (C) Jeremy Allison 2000
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 typedef int SMB_ACL_TYPE_T
;
24 typedef mode_t
*SMB_ACL_PERMSET_T
;
25 typedef mode_t SMB_ACL_PERM_T
;
26 #define SMB_ACL_READ 4
27 #define SMB_ACL_WRITE 2
28 #define SMB_ACL_EXECUTE 1
32 SMB_ACL_TAG_INVALID
=0,
41 typedef enum smb_acl_tag_t SMB_ACL_TAG_T
;
43 struct smb_acl_entry
{
44 enum smb_acl_tag_t a_type
;
45 SMB_ACL_PERM_T a_perm
;
50 typedef struct smb_acl_t
{
54 struct smb_acl_entry acl
[1];
57 typedef struct smb_acl_entry
*SMB_ACL_ENTRY_T
;
59 #define SMB_ACL_FIRST_ENTRY 0
60 #define SMB_ACL_NEXT_ENTRY 1
62 #define SMB_ACL_TYPE_ACCESS 0
63 #define SMB_ACL_TYPE_DEFAULT 1
65 #endif /* _SMB_ACLS_H */