vfs_gpfs: Remove support for old GPFS without DACL_PROTECTED support
authorChristof Schmitt <cs@samba.org>
Sun, 23 Oct 2022 23:01:41 +0000 (16:01 -0700)
committerBjoern Jacke <bjacke@samba.org>
Mon, 24 Oct 2022 15:43:35 +0000 (15:43 +0000)
GPFS 3.5 introduced support for storing the DACL_PROTECTED flag as part
of the ACL. That version has long been superceded. Remove this now
unused codepath.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15211

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Bjoern Jacke <bjacke@samba.org>
source3/modules/vfs_gpfs.c

index 779627f8115e8117f99af593c81dcbb19c36e528..969e7744fce7ae84cf901ea49399dd279364b979 100644 (file)
@@ -842,14 +842,6 @@ static NTSTATUS gpfsacl_set_nt_acl_internal(vfs_handle_struct *handle, files_str
        if (acl->acl_version == GPFS_ACL_VERSION_NFS4) {
                struct gpfs_config_data *config;
 
-               if (lp_parm_bool(fsp->conn->params->service, "gpfs",
-                                "refuse_dacl_protected", false)
-                   && (psd->type&SEC_DESC_DACL_PROTECTED)) {
-                       DEBUG(2, ("Rejecting unsupported ACL with DACL_PROTECTED bit set\n"));
-                       talloc_free(acl);
-                       return NT_STATUS_NOT_SUPPORTED;
-               }
-
                SMB_VFS_HANDLE_GET_DATA(handle, config,
                                        struct gpfs_config_data,
                                        return NT_STATUS_INTERNAL_ERROR);