summaryrefslogtreecommitdiffstats
path: root/source3/include/vfs_macros.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-13 20:03:48 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-15 11:44:50 +1000
commite25830dcd87387a237b96f0d70deb204a5bf0a54 (patch)
tree3bd7838560de386df5bb935b9e94b4ba8436d3d8 /source3/include/vfs_macros.h
parenta63a2a72ebb3d9c9a41c5519c85e8b294f1110a8 (diff)
downloadsamba-e25830dcd87387a237b96f0d70deb204a5bf0a54.tar.gz
samba-e25830dcd87387a237b96f0d70deb204a5bf0a54.tar.xz
samba-e25830dcd87387a237b96f0d70deb204a5bf0a54.zip
s3-smbd: Remove sys_acl_*() VFS wrapper functions
We no longer do struct smb_acl_t manipuations via the VFS layer, which is now reduced to handling the get/set functions. The only backend that implemented these functions (aside from audit) was the vfs_default module calling the sys_acl code. The various ACL implementation modules either worked on the fully initilaised smb_acl_t object or on NT ACLs. This not only makes the operation of the posix ACL code more efficient (as allocation and free is not put via the VFS), it makes it easier to test and removes the fantasy that a module could safely redefine this structure or the behaviour here. The smb_acls.idl now defines the structure, and it is now allocated with talloc. These operations were originally added to the VFS in commit 3bb219161a270f12c27c3bc7e1220829c6e9f284. Andrew Bartlett
Diffstat (limited to 'source3/include/vfs_macros.h')
-rw-r--r--source3/include/vfs_macros.h85
1 files changed, 0 insertions, 85 deletions
diff --git a/source3/include/vfs_macros.h b/source3/include/vfs_macros.h
index 515f68f16e..e577e9950f 100644
--- a/source3/include/vfs_macros.h
+++ b/source3/include/vfs_macros.h
@@ -429,26 +429,6 @@
#define SMB_VFS_NEXT_FCHMOD_ACL(handle, fsp, mode) \
smb_vfs_call_fchmod_acl((handle)->next, (fsp), (mode))
-#define SMB_VFS_SYS_ACL_GET_ENTRY(conn, theacl, entry_id, entry_p) \
- smb_vfs_call_sys_acl_get_entry((conn)->vfs_handles, (theacl), (entry_id), (entry_p))
-#define SMB_VFS_NEXT_SYS_ACL_GET_ENTRY(handle, theacl, entry_id, entry_p) \
- smb_vfs_call_sys_acl_get_entry((handle)->next, (theacl), (entry_id), (entry_p))
-
-#define SMB_VFS_SYS_ACL_GET_TAG_TYPE(conn, entry_d, tag_type_p) \
- smb_vfs_call_sys_acl_get_tag_type((conn)->vfs_handles, (entry_d), (tag_type_p))
-#define SMB_VFS_NEXT_SYS_ACL_GET_TAG_TYPE(handle, entry_d, tag_type_p) \
- smb_vfs_call_sys_acl_get_tag_type((handle)->next, (entry_d), (tag_type_p))
-
-#define SMB_VFS_SYS_ACL_GET_PERMSET(conn, entry_d, permset_p) \
- smb_vfs_call_sys_acl_get_permset((conn)->vfs_handles, (entry_d), (permset_p))
-#define SMB_VFS_NEXT_SYS_ACL_GET_PERMSET(handle, entry_d, permset_p) \
- smb_vfs_call_sys_acl_get_permset((handle)->next, (entry_d), (permset_p))
-
-#define SMB_VFS_SYS_ACL_GET_QUALIFIER(conn, entry_d) \
- smb_vfs_call_sys_acl_get_qualifier((conn)->vfs_handles, (entry_d))
-#define SMB_VFS_NEXT_SYS_ACL_GET_QUALIFIER(handle, entry_d) \
- smb_vfs_call_sys_acl_get_qualifier((handle)->next, (entry_d))
-
#define SMB_VFS_SYS_ACL_GET_FILE(conn, path_p, type) \
smb_vfs_call_sys_acl_get_file((conn)->vfs_handles, (path_p), (type))
#define SMB_VFS_NEXT_SYS_ACL_GET_FILE(handle, path_p, type) \
@@ -459,51 +439,6 @@
#define SMB_VFS_NEXT_SYS_ACL_GET_FD(handle, fsp) \
smb_vfs_call_sys_acl_get_fd((handle)->next, (fsp))
-#define SMB_VFS_SYS_ACL_CLEAR_PERMS(conn, permset) \
- smb_vfs_call_sys_acl_clear_perms((conn)->vfs_handles, (permset))
-#define SMB_VFS_NEXT_SYS_ACL_CLEAR_PERMS(handle, permset) \
- smb_vfs_call_sys_acl_clear_perms((handle)->next, (permset))
-
-#define SMB_VFS_SYS_ACL_ADD_PERM(conn, permset, perm) \
- smb_vfs_call_sys_acl_add_perm((conn)->vfs_handles, (permset), (perm))
-#define SMB_VFS_NEXT_SYS_ACL_ADD_PERM(handle, permset, perm) \
- smb_vfs_call_sys_acl_add_perm((handle)->next, (permset), (perm))
-
-#define SMB_VFS_SYS_ACL_TO_TEXT(conn, theacl, plen) \
- smb_vfs_call_sys_acl_to_text((conn)->vfs_handles, (theacl), (plen))
-#define SMB_VFS_NEXT_SYS_ACL_TO_TEXT(handle, theacl, plen) \
- smb_vfs_call_sys_acl_to_text((handle)->next, (theacl), (plen))
-
-#define SMB_VFS_SYS_ACL_INIT(conn, count) \
- smb_vfs_call_sys_acl_init((conn)->vfs_handles, (count))
-#define SMB_VFS_NEXT_SYS_ACL_INIT(handle, count) \
- smb_vfs_call_sys_acl_init((handle)->next, (count))
-
-#define SMB_VFS_SYS_ACL_CREATE_ENTRY(conn, pacl, pentry) \
- smb_vfs_call_sys_acl_create_entry((conn)->vfs_handles, (pacl), (pentry))
-#define SMB_VFS_NEXT_SYS_ACL_CREATE_ENTRY(handle, pacl, pentry) \
- smb_vfs_call_sys_acl_create_entry((handle)->next, (pacl), (pentry))
-
-#define SMB_VFS_SYS_ACL_SET_TAG_TYPE(conn, entry, tagtype) \
- smb_vfs_call_sys_acl_set_tag_type((conn)->vfs_handles, (entry), (tagtype))
-#define SMB_VFS_NEXT_SYS_ACL_SET_TAG_TYPE(handle, entry, tagtype) \
- smb_vfs_call_sys_acl_set_tag_type((handle)->next, (entry), (tagtype))
-
-#define SMB_VFS_SYS_ACL_SET_QUALIFIER(conn, entry, qual) \
- smb_vfs_call_sys_acl_set_qualifier((conn)->vfs_handles, (entry), (qual))
-#define SMB_VFS_NEXT_SYS_ACL_SET_QUALIFIER(handle, entry, qual) \
- smb_vfs_call_sys_acl_set_qualifier((handle)->next, (entry), (qual))
-
-#define SMB_VFS_SYS_ACL_SET_PERMSET(conn, entry, permset) \
- smb_vfs_call_sys_acl_set_permset((conn)->vfs_handles, (entry), (permset))
-#define SMB_VFS_NEXT_SYS_ACL_SET_PERMSET(handle, entry, permset) \
- smb_vfs_call_sys_acl_set_permset((handle)->next, (entry), (permset))
-
-#define SMB_VFS_SYS_ACL_VALID(conn, theacl) \
- smb_vfs_call_sys_acl_valid((conn)->vfs_handles, (theacl))
-#define SMB_VFS_NEXT_SYS_ACL_VALID(handle, theacl) \
- smb_vfs_call_sys_acl_valid((handle)->next, (theacl))
-
#define SMB_VFS_SYS_ACL_SET_FILE(conn, name, acltype, theacl) \
smb_vfs_call_sys_acl_set_file((conn)->vfs_handles, (name), (acltype), (theacl))
#define SMB_VFS_NEXT_SYS_ACL_SET_FILE(handle, name, acltype, theacl) \
@@ -519,26 +454,6 @@
#define SMB_VFS_NEXT_SYS_ACL_DELETE_DEF_FILE(handle, path) \
smb_vfs_call_sys_acl_delete_def_file((handle)->next, (path))
-#define SMB_VFS_SYS_ACL_GET_PERM(conn, permset, perm) \
- smb_vfs_call_sys_acl_get_perm((conn)->vfs_handles, (permset), (perm))
-#define SMB_VFS_NEXT_SYS_ACL_GET_PERM(handle, permset, perm) \
- smb_vfs_call_sys_acl_get_perm((handle)->next, (permset), (perm))
-
-#define SMB_VFS_SYS_ACL_FREE_TEXT(conn, text) \
- smb_vfs_call_sys_acl_free_text((conn)->vfs_handles, (text))
-#define SMB_VFS_NEXT_SYS_ACL_FREE_TEXT(handle, text) \
- smb_vfs_call_sys_acl_free_text((handle)->next, (text))
-
-#define SMB_VFS_SYS_ACL_FREE_ACL(conn, posix_acl) \
- smb_vfs_call_sys_acl_free_acl((conn)->vfs_handles, (posix_acl))
-#define SMB_VFS_NEXT_SYS_ACL_FREE_ACL(handle, posix_acl) \
- smb_vfs_call_sys_acl_free_acl((handle)->next, (posix_acl))
-
-#define SMB_VFS_SYS_ACL_FREE_QUALIFIER(conn, qualifier, tagtype) \
- smb_vfs_call_sys_acl_free_qualifier((conn)->vfs_handles, (qualifier), (tagtype))
-#define SMB_VFS_NEXT_SYS_ACL_FREE_QUALIFIER(handle, qualifier, tagtype) \
- smb_vfs_call_sys_acl_free_qualifier((handle)->next, (qualifier), (tagtype))
-
#define SMB_VFS_GETXATTR(conn,path,name,value,size) \
smb_vfs_call_getxattr((conn)->vfs_handles,(path),(name),(value),(size))
#define SMB_VFS_NEXT_GETXATTR(handle,path,name,value,size) \