From: Jeremy Allison Date: Fri, 18 May 2018 18:50:44 +0000 (-0700) Subject: s3: smbd: Make map_acl_perms_to_permset() extern. X-Git-Tag: ldb-1.4.0~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e85a662eea4122bdc78ee2c6339623e9728d1b1b;p=thirdparty%2Fsamba.git s3: smbd: Make map_acl_perms_to_permset() extern. The vfs_fake_acl module will need it to implement chown/fchown. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index 426d96611d7..fb074772134 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -889,7 +889,7 @@ mode_t unix_perms_to_acl_perms(mode_t mode, int r_mask, int w_mask, int x_mask) an SMB_ACL_PERMSET_T. ****************************************************************************/ -static int map_acl_perms_to_permset(mode_t mode, SMB_ACL_PERMSET_T *p_permset) +int map_acl_perms_to_permset(mode_t mode, SMB_ACL_PERMSET_T *p_permset) { if (sys_acl_clear_perms(*p_permset) == -1) return -1; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index c3d3638772a..86b65515289 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -763,6 +763,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); +int map_acl_perms_to_permset(mode_t mode, SMB_ACL_PERMSET_T *p_permset); uint32_t map_canon_ace_perms(int snum, enum security_ace_type *pacl_type, mode_t perms,