From: Andrew Bartlett Date: Wed, 10 Oct 2012 05:45:44 +0000 (+1100) Subject: vfs: Use a blocking function in vfs_afsacl for system ACL blobs X-Git-Tag: ldb-1.1.14~314 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c960a49f428d8e5030bd61c42095786406184b99;p=thirdparty%2Fsamba.git 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 --- 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);