]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Make map_acl_perms_to_permset() extern.
authorJeremy Allison <jra@samba.org>
Fri, 18 May 2018 18:50:44 +0000 (11:50 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 25 May 2018 16:39:25 +0000 (18:39 +0200)
The vfs_fake_acl module will need it to implement chown/fchown.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/posix_acls.c
source3/smbd/proto.h

index 426d96611d75d816f981df05b48d3f06513f17ed..fb074772134afc5a02494d29f83421389eabdc33 100644 (file)
@@ -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;
index c3d3638772a357767d65c650f28b38f603aba971..86b655152891ce1ee39f336d821f1e5fff0375df 100644 (file)
@@ -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,