vfs: Allow CREATOR GROUP to be used with vfs_zfsacl
authorAndrew Bartlett <abartlet@samba.org>
Sun, 28 Apr 2013 08:20:04 +0000 (18:20 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 9 May 2013 04:18:21 +0000 (06:18 +0200)
The solaris acl() code requires that both ACE_GROUP|ACE_IDENTIFIER_GROUP be
set to indicate the @group permissions.

Otherwise, it would return Invalid Paramter to clients.

Andrew Bartlett
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_zfsacl.c

index 93a0faa6d5cbbbaa6231396e33f026eaf4df9b6f..dbae50b4648e6d17127cdcd6d9db15e6c96cf300 100644 (file)
@@ -142,7 +142,7 @@ static bool zfs_process_smbacl(vfs_handle_struct *handle, files_struct *fsp, SMB
                                acebuf[i].a_flags |= ACE_OWNER;
                                break;
                        case SMB_ACE4_WHO_GROUP:
-                               acebuf[i].a_flags |= ACE_GROUP;
+                               acebuf[i].a_flags |= ACE_GROUP|ACE_IDENTIFIER_GROUP;
                                break;
                        default:
                                DEBUG(8, ("unsupported special_id %d\n", \