Add support for OneFS ACLs
[kai/samba.git] / source3 / modules / onefs.h
1 /*
2  * Unix SMB/CIFS implementation.
3  * Support for OneFS
4  *
5  * Copyright (C) Steven Danneman, 2008
6  *
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 3 of the License, or
10  * (at your option) any later version.
11  *
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.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #ifndef _ONEFS_H
22 #define _ONEFS_H
23
24 /* OneFS Module smb.conf parameters and defaults */
25
26 /**
27 * Specifies when ACLs presented to Windows should be canonicalized
28 * into the ordering which Explorer expects.
29 */
30 enum onefs_acl_wire_format
31 {
32         ACL_FORMAT_RAW, /**< Never canonicalize */
33         ACL_FORMAT_WINDOWS_SD, /**< Only canonicalize synthetic ACLs */
34         ACL_FORMAT_ALWAYS /**< Always canonicalize */
35 };
36
37 const struct enum_list enum_onefs_acl_wire_format[] = {
38         {ACL_FORMAT_RAW,  "No Format"},
39         {ACL_FORMAT_WINDOWS_SD, "Format Windows SD"},
40         {ACL_FORMAT_ALWAYS, "Always Format SD"},
41         {-1, NULL}
42 };
43
44 #define PARM_ONEFS_TYPE "onefs"
45 #define PARM_ACL_WIRE_FORMAT "acl wire format"
46 #define PARM_ACL_WIRE_FORMAT_DEFAULT ACL_FORMAT_WINDOWS_SD
47 #define PARM_SIMPLE_FILE_SHARING_COMPATIBILITY_MODE "simple file sharing compatibility mode"
48 #define PARM_SIMPLE_FILE_SHARING_COMPATIBILITY_MODE_DEFAULT false
49 #define PARM_CREATOR_OWNER_GETS_FULL_CONTROL "creator owner gets full control"
50 #define PARM_CREATOR_OWNER_GETS_FULL_CONTROL_DEFAULT true
51
52 #endif /* _ONEFS_H */