From 109d94d15e9c3b6606551c62ec6ec97acb821e82 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 18 May 2018 11:49:09 -0700 Subject: [PATCH] s3: smbd: Make unix_perms_to_acl_perms() extern. The vfs_fake_acl module will need it to implement chown/fchown. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- source3/smbd/posix_acls.c | 2 +- source3/smbd/proto.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index ffe3416d20a..426d96611d7 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -870,7 +870,7 @@ static mode_t convert_permset_to_mode_t(SMB_ACL_PERMSET_T permset) Map generic UNIX permissions to canon_ace permissions (a mode_t containing only S_(R|W|X)USR bits). ****************************************************************************/ -static mode_t unix_perms_to_acl_perms(mode_t mode, int r_mask, int w_mask, int x_mask) +mode_t unix_perms_to_acl_perms(mode_t mode, int r_mask, int w_mask, int x_mask) { mode_t ret = 0; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 23cc46bec0b..c3d3638772a 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -762,6 +762,7 @@ void reply_pipe_read_and_X(struct smb_request *req); /* The following definitions come from smbd/posix_acls.c */ +mode_t unix_perms_to_acl_perms(mode_t mode, int r_mask, int w_mask, int x_mask); uint32_t map_canon_ace_perms(int snum, enum security_ace_type *pacl_type, mode_t perms, -- 2.47.2