summaryrefslogtreecommitdiff
path: root/source3/smbd/proto.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-10-10 16:49:59 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-10-11 12:25:11 +1100
commitddcaac99f0262909be57eceac4535bd3684096b3 (patch)
tree552acc1d65e8316a3f0faf2ec779a7dbde6187ed /source3/smbd/proto.h
parent1f36ec129300e4f69efe26d4950fe3a7cfbfb233 (diff)
downloadsamba-ddcaac99f0262909be57eceac4535bd3684096b3.tar.gz
samba-ddcaac99f0262909be57eceac4535bd3684096b3.tar.bz2
samba-ddcaac99f0262909be57eceac4535bd3684096b3.zip
vfs: Implement a sys_acl_blob_get_{fd,file} for POSIX ACL backends
This simply linearlises the SMB_ACL_T (default and access acl for directories) and the file owner, group and mode into a blob. It will be useful for an improved vfs_acl_common.c that uses this sets that, rather than the hash of the NT ACL, in the xattr This will in turn insulate the stored hash from changes in the ACL mapping. Andrew Bartlett
Diffstat (limited to 'source3/smbd/proto.h')
-rw-r--r--source3/smbd/proto.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index 1e5883b039..1b3c23227d 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -739,6 +739,16 @@ NTSTATUS make_default_filesystem_acl(TALLOC_CTX *ctx,
const char *name,
SMB_STRUCT_STAT *psbuf,
struct security_descriptor **ppdesc);
+int posix_sys_acl_blob_get_file(vfs_handle_struct *handle,
+ const char *path_p,
+ TALLOC_CTX *mem_ctx,
+ char **blob_description,
+ DATA_BLOB *blob);
+int posix_sys_acl_blob_get_fd(vfs_handle_struct *handle,
+ files_struct *fsp,
+ TALLOC_CTX *mem_ctx,
+ char **blob_description,
+ DATA_BLOB *blob);
/* The following definitions come from smbd/process.c */