1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

nfs4acls: Make smbacl4_vfs_params public

vfs_gpfs & others will be able to embed this structure in their special config.

We could have gone with an anonymous struct and a talloc'ed object, but for my
taste this is specialized and hidden enough that it's not worth the
indirection.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2016-08-09 11:28:30 +02:00 committed by Ralph Boehme
parent e3523c8d46
commit d982ea5246
2 changed files with 15 additions and 15 deletions

View File

@ -51,23 +51,11 @@ struct SMB4ACL_T
struct SMB4ACE_T *last;
};
enum smbacl4_mode_enum {e_simple=0, e_special=1};
enum smbacl4_acedup_enum {e_dontcare=0, e_reject=1, e_ignore=2, e_merge=3};
struct smbacl4_vfs_params {
enum smbacl4_mode_enum mode;
bool do_chown;
enum smbacl4_acedup_enum acedup;
bool map_full_control;
};
/*
* Gather special parameters for NFS4 ACL handling
*/
static int smbacl4_get_vfs_params(
struct connection_struct *conn,
struct smbacl4_vfs_params *params
)
int smbacl4_get_vfs_params(struct connection_struct *conn,
struct smbacl4_vfs_params *params)
{
static const struct enum_list enum_smbacl4_modes[] = {
{ e_simple, "simple" },

View File

@ -109,7 +109,19 @@ typedef struct _SMB_ACE4PROP_T {
struct SMB4ACL_T;
struct SMB4ACE_T;
struct smbacl4_vfs_params;
enum smbacl4_mode_enum {e_simple=0, e_special=1};
enum smbacl4_acedup_enum {e_dontcare=0, e_reject=1, e_ignore=2, e_merge=3};
struct smbacl4_vfs_params {
enum smbacl4_mode_enum mode;
bool do_chown;
enum smbacl4_acedup_enum acedup;
bool map_full_control;
};
int smbacl4_get_vfs_params(struct connection_struct *conn,
struct smbacl4_vfs_params *params);
struct SMB4ACL_T *smb_create_smb4acl(TALLOC_CTX *mem_ctx);