Fix spelling s/Everytime/Every time/
[Samba.git] / source3 / modules / vfs_acl_common.h
blob24803e0215e82cbe8b81091fe24579ce3126eb88
1 /*
2 * Store Windows ACLs in data store - common functions.
4 * Copyright (C) Volker Lendecke, 2008
5 * Copyright (C) Jeremy Allison, 2009
6 * Copyright (C) Ralph Böhme, 2016
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, see <http://www.gnu.org/licenses/>.
22 #ifndef __VFS_ACL_COMMON_H__
23 #define __VFS_ACL_COMMON_H__
25 #include "smbd/proto.h"
27 struct acl_common_config {
28 bool ignore_system_acls;
29 enum default_acl_style default_acl_style;
32 bool init_acl_common_config(vfs_handle_struct *handle,
33 const char *module_name);
35 int rmdir_acl_common(struct vfs_handle_struct *handle,
36 const struct smb_filename *smb_fname);
37 int unlink_acl_common(struct vfs_handle_struct *handle,
38 const struct smb_filename *smb_fname);
39 int chmod_acl_module_common(struct vfs_handle_struct *handle,
40 const struct smb_filename *smb_fname,
41 mode_t mode);
42 int fchmod_acl_module_common(struct vfs_handle_struct *handle,
43 struct files_struct *fsp, mode_t mode);
44 int chmod_acl_acl_module_common(struct vfs_handle_struct *handle,
45 const struct smb_filename *smb_fname,
46 mode_t mode);
47 int fchmod_acl_acl_module_common(struct vfs_handle_struct *handle,
48 struct files_struct *fsp, mode_t mode);
50 NTSTATUS get_nt_acl_common(
51 NTSTATUS (*get_acl_blob_fn)(TALLOC_CTX *ctx,
52 vfs_handle_struct *handle,
53 files_struct *fsp,
54 const struct smb_filename *smb_fname,
55 DATA_BLOB *pblob),
56 vfs_handle_struct *handle,
57 files_struct *fsp,
58 const struct smb_filename *smb_fname_in,
59 uint32_t security_info,
60 TALLOC_CTX *mem_ctx,
61 struct security_descriptor **ppdesc);
63 NTSTATUS fset_nt_acl_common(
64 NTSTATUS (*get_acl_blob_fn)(TALLOC_CTX *ctx,
65 vfs_handle_struct *handle,
66 files_struct *fsp,
67 const struct smb_filename *smb_fname,
68 DATA_BLOB *pblob),
69 NTSTATUS (*store_acl_blob_fsp_fn)(vfs_handle_struct *handle,
70 files_struct *fsp,
71 DATA_BLOB *pblob),
72 const char *module_name,
73 vfs_handle_struct *handle, files_struct *fsp,
74 uint32_t security_info_sent,
75 const struct security_descriptor *orig_psd);
79 #endif