diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-06-05 12:33:52 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-06-06 10:18:39 +0200 |
commit | 36c7016cc06d8e8e45ffc4212ae4ed1f5706c6b0 (patch) | |
tree | 62c75a9b62ef4f355f201fbec0aafa023dc46ec9 /source3 | |
parent | bc39915f47bb5555cdc10ebb9cc843ed16e3b207 (diff) | |
download | samba-36c7016cc06d8e8e45ffc4212ae4ed1f5706c6b0.tar.gz samba-36c7016cc06d8e8e45ffc4212ae4ed1f5706c6b0.tar.bz2 samba-36c7016cc06d8e8e45ffc4212ae4ed1f5706c6b0.zip |
s3:include: move sys_acl prototypes to smb_acls.h
metze
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/proto.h | 30 | ||||
-rw-r--r-- | source3/include/smb_acls.h | 33 |
2 files changed, 33 insertions, 30 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index b5a66b52b4..b265d7a2c1 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -242,36 +242,6 @@ void standard_sub_advanced(const char *servicename, const char *user, const char *smb_name, const char *domain_name, char *str, size_t len); -/* The following definitions come from lib/sysacls.c */ - -int sys_acl_get_entry(SMB_ACL_T acl_d, int entry_id, SMB_ACL_ENTRY_T *entry_p); -int sys_acl_get_tag_type(SMB_ACL_ENTRY_T entry_d, SMB_ACL_TAG_T *type_p); -int sys_acl_get_permset(SMB_ACL_ENTRY_T entry_d, SMB_ACL_PERMSET_T *permset_p); -void *sys_acl_get_qualifier(SMB_ACL_ENTRY_T entry_d); -int sys_acl_clear_perms(SMB_ACL_PERMSET_T permset_d); -int sys_acl_add_perm(SMB_ACL_PERMSET_T permset_d, SMB_ACL_PERM_T perm); -int sys_acl_get_perm(SMB_ACL_PERMSET_T permset_d, SMB_ACL_PERM_T perm); -char *sys_acl_to_text(const struct smb_acl_t *acl_d, ssize_t *len_p); -SMB_ACL_T sys_acl_init(int count); -int sys_acl_create_entry(SMB_ACL_T *acl_p, SMB_ACL_ENTRY_T *entry_p); -int sys_acl_set_tag_type(SMB_ACL_ENTRY_T entry_d, SMB_ACL_TAG_T tag_type); -int sys_acl_set_qualifier(SMB_ACL_ENTRY_T entry_d, void *qual_p); -int sys_acl_set_permset(SMB_ACL_ENTRY_T entry_d, SMB_ACL_PERMSET_T permset_d); -int sys_acl_free_text(char *text); -int sys_acl_free_acl(SMB_ACL_T acl_d) ; -int sys_acl_free_qualifier(void *qual, SMB_ACL_TAG_T tagtype); -int sys_acl_valid(SMB_ACL_T acl_d); -SMB_ACL_T sys_acl_get_file(vfs_handle_struct *handle, - const char *path_p, SMB_ACL_TYPE_T type); -SMB_ACL_T sys_acl_get_fd(vfs_handle_struct *handle, files_struct *fsp); -int sys_acl_set_file(vfs_handle_struct *handle, - const char *name, SMB_ACL_TYPE_T type, SMB_ACL_T acl_d); -int sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp, - SMB_ACL_T acl_d); -int sys_acl_delete_def_file(vfs_handle_struct *handle, - const char *path); -int no_acl_syscall_error(int err); - /* The following definitions come from lib/sysquotas.c */ int sys_get_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dp); diff --git a/source3/include/smb_acls.h b/source3/include/smb_acls.h index 3d9cfbf5d2..16bb61f670 100644 --- a/source3/include/smb_acls.h +++ b/source3/include/smb_acls.h @@ -20,6 +20,9 @@ #ifndef _SMB_ACLS_H #define _SMB_ACLS_H +struct vfs_handle_struct; +struct files_struct; + typedef int SMB_ACL_TYPE_T; typedef mode_t *SMB_ACL_PERMSET_T; typedef mode_t SMB_ACL_PERM_T; @@ -62,4 +65,34 @@ typedef struct smb_acl_entry *SMB_ACL_ENTRY_T; #define SMB_ACL_TYPE_ACCESS 0 #define SMB_ACL_TYPE_DEFAULT 1 +/* The following definitions come from lib/sysacls.c */ + +int sys_acl_get_entry(SMB_ACL_T acl_d, int entry_id, SMB_ACL_ENTRY_T *entry_p); +int sys_acl_get_tag_type(SMB_ACL_ENTRY_T entry_d, SMB_ACL_TAG_T *type_p); +int sys_acl_get_permset(SMB_ACL_ENTRY_T entry_d, SMB_ACL_PERMSET_T *permset_p); +void *sys_acl_get_qualifier(SMB_ACL_ENTRY_T entry_d); +int sys_acl_clear_perms(SMB_ACL_PERMSET_T permset_d); +int sys_acl_add_perm(SMB_ACL_PERMSET_T permset_d, SMB_ACL_PERM_T perm); +int sys_acl_get_perm(SMB_ACL_PERMSET_T permset_d, SMB_ACL_PERM_T perm); +char *sys_acl_to_text(const struct smb_acl_t *acl_d, ssize_t *len_p); +SMB_ACL_T sys_acl_init(int count); +int sys_acl_create_entry(SMB_ACL_T *acl_p, SMB_ACL_ENTRY_T *entry_p); +int sys_acl_set_tag_type(SMB_ACL_ENTRY_T entry_d, SMB_ACL_TAG_T tag_type); +int sys_acl_set_qualifier(SMB_ACL_ENTRY_T entry_d, void *qual_p); +int sys_acl_set_permset(SMB_ACL_ENTRY_T entry_d, SMB_ACL_PERMSET_T permset_d); +int sys_acl_free_text(char *text); +int sys_acl_free_acl(SMB_ACL_T acl_d) ; +int sys_acl_free_qualifier(void *qual, SMB_ACL_TAG_T tagtype); +int sys_acl_valid(SMB_ACL_T acl_d); +SMB_ACL_T sys_acl_get_file(struct vfs_handle_struct *handle, + const char *path_p, SMB_ACL_TYPE_T type); +SMB_ACL_T sys_acl_get_fd(struct vfs_handle_struct *handle, struct files_struct *fsp); +int sys_acl_set_file(struct vfs_handle_struct *handle, + const char *name, SMB_ACL_TYPE_T type, SMB_ACL_T acl_d); +int sys_acl_set_fd(struct vfs_handle_struct *handle, struct files_struct *fsp, + SMB_ACL_T acl_d); +int sys_acl_delete_def_file(struct vfs_handle_struct *handle, + const char *path); +int no_acl_syscall_error(int err); + #endif /* _SMB_ACLS_H */ |