summaryrefslogtreecommitdiffstats
path: root/source3/modules/vfs_afsacl.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-10-10 16:45:44 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-10-11 12:25:12 +1100
commitc960a49f428d8e5030bd61c42095786406184b99 (patch)
tree25e26c7c5f541f6d1ca24a4fdda76d9ebce566a6 /source3/modules/vfs_afsacl.c
parentddcaac99f0262909be57eceac4535bd3684096b3 (diff)
downloadsamba-c960a49f428d8e5030bd61c42095786406184b99.tar.gz
samba-c960a49f428d8e5030bd61c42095786406184b99.tar.xz
samba-c960a49f428d8e5030bd61c42095786406184b99.zip
vfs: Use a blocking function in vfs_afsacl for system ACL blobs
This is important, as we need to avoid asking any lower module for a possible libear ACL blob. We may implement a linearisation in the future. Andrew Bartlett
Diffstat (limited to 'source3/modules/vfs_afsacl.c')
-rw-r--r--source3/modules/vfs_afsacl.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/source3/modules/vfs_afsacl.c b/source3/modules/vfs_afsacl.c
index 96521bc2663..7d1895fc99b 100644
--- a/source3/modules/vfs_afsacl.c
+++ b/source3/modules/vfs_afsacl.c
@@ -1092,11 +1092,27 @@ static int afsacl_connect(vfs_handle_struct *handle,
return 0;
}
+/* We don't have a linear form of the AFS ACL yet */
+static int afsacl_sys_acl_blob_get_file(vfs_handle_struct *handle, const char *path_p, TALLOC_CTX *mem_ctx, char **blob_description, DATA_BLOB *blob)
+{
+ errno = ENOSYS;
+ return -1;
+}
+
+/* We don't have a linear form of the AFS ACL yet */
+static int afsacl_sys_acl_blob_get_fd(vfs_handle_struct *handle, files_struct *fsp, TALLOC_CTX *mem_ctx, char **blob_description, DATA_BLOB *blob)
+{
+ errno = ENOSYS;
+ return -1;
+}
+
static struct vfs_fn_pointers vfs_afsacl_fns = {
.connect_fn = afsacl_connect,
.fget_nt_acl_fn = afsacl_fget_nt_acl,
.get_nt_acl_fn = afsacl_get_nt_acl,
- .fset_nt_acl_fn = afsacl_fset_nt_acl
+ .fset_nt_acl_fn = afsacl_fset_nt_acl,
+ .sys_acl_blob_get_file_fn = afsacl_sys_acl_blob_get_file,
+ .sys_acl_blob_get_fd_fn = afsacl_sys_acl_blob_get_fd
};
NTSTATUS vfs_afsacl_init(void);