Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sLsP5-00H3UH-QK for pgsql-committers@arkaria.postgresql.org; Mon, 24 Jun 2024 22:43:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sLsP3-00CUVS-Bf for pgsql-committers@arkaria.postgresql.org; Mon, 24 Jun 2024 22:43:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sLsP3-00CUVK-1j for pgsql-committers@lists.postgresql.org; Mon, 24 Jun 2024 22:43:13 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sLsP0-002xTB-Hz for pgsql-committers@lists.postgresql.org; Mon, 24 Jun 2024 22:43:12 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-42499b98d4cso3108655e9.2 for ; Mon, 24 Jun 2024 15:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719268988; x=1719873788; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ZthEN1XQnB5+7nF+//qT/a6sb+ptKGY6KCLB2YvTnvM=; b=O6EnDD8ME5Vpi49yR2OsVziv8DvXocs68Jc/vChNqC/4nnuuYOWaxNol/k6KDCnbN0 A+cEy18mli3fKf6PN+1pZZz78fFbpzrrF9la3X3fRtez6L95jTQX3HAwsf9+2vEbS3Td stdNJbJlpMWcgvn1T0pkV43ns2WwyIO5sRdhl/gw2nOrUoSyGlVhN3C9TWDnvd0mrCFo wlssge6ez2QF604PZvYoDxxJ3pbi2cOPiU6ruTaLyK5gZVjGqprxrxVxMBM6FcNRN0OA hRrJ3G9fPnCMkgeI7+mrVnLeQamDDzJWS83Z23kfhT85sOXkpyFjLpVzrMM1ea0wI1Pf +o5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719268988; x=1719873788; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZthEN1XQnB5+7nF+//qT/a6sb+ptKGY6KCLB2YvTnvM=; b=dqgasa2siKp2d/JeXAycH1FRAS65sAFNa7wKcrmmkJoFSX85A5AIaNNpWCWU5RFK6r qodY/2bHd4g2SpDW8ZF6eEPVQqIpW3hvuggwOOtvORFPPDMm/pCD1jD1xB+YLp2PDQAb CEHEePGTM13MvAns0skWs43R8NuqkaHeUfuVOk1PuC1EqMvdFr4MbOUNaOlOZcw2fqxM A01eZ+4DG0r4Dl7+U6YzbXiZtJbrP9fo9fJS+HlH38jtq/WmXGBj9oGbYSYMC6+IPQjE F7awbXgBVXC5LsT02UE+v1kHW8sEBS//590l89Pb2l5zcXDt1Zm0cIg7KNCK4j1SbVSL UtfA== X-Gm-Message-State: AOJu0YwAArvN29wr/RaeEMQ6W2lB5GpjdUr6DGQIt12xawcSGfhEcqGN IfAJM4ZKEVpPgqHLfAKErM4A9pmsxny8Dv0hSn3+i3Wv6o/Jo0vI X-Google-Smtp-Source: AGHT+IGEg4WpCJY1Lm3vUnxzb3g6DolosQMW2J1iwcaDUGwAnLufihu7DiwoLG+CMSVJw5MHx4nI0A== X-Received: by 2002:a05:600c:470a:b0:421:7fb6:511e with SMTP id 5b1f17b1804b1-4248cc5931bmr38185345e9.30.1719268988351; Mon, 24 Jun 2024 15:43:08 -0700 (PDT) Received: from ?IPV6:2001:a61:128d:1001:4d6b:8917:24ed:178d? ([2001:a61:128d:1001:4d6b:8917:24ed:178d]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4247cf5272esm192030175e9.0.2024.06.24.15.43.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Jun 2024 15:43:08 -0700 (PDT) Message-ID: <43ccedba-ea29-44a3-8ed9-44e764e9ff92@gmail.com> Date: Tue, 25 Jun 2024 00:43:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Skip some permissions checks on Cygwin To: Andrew Dunstan , Noah Misch Cc: pgsql-committers@lists.postgresql.org References: <20240624010311.0b.nmisch@google.com> <20240624204221.42.nmisch@google.com> <003457fd-cc74-4e6a-bc0e-2891d40d4621@dunslane.net> Content-Language: en-US From: Marco Atzeri In-Reply-To: <003457fd-cc74-4e6a-bc0e-2891d40d4621@dunslane.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 24/06/2024 22:58, Andrew Dunstan wrote: > > On 2024-06-24 Mo 4:42 PM, Noah Misch wrote: >> On Mon, Jun 24, 2024 at 10:17:32AM -0400, Andrew Dunstan wrote: >>> On 2024-06-23 Su 9:03 PM, Noah Misch wrote: >>>> On Thu, Jun 13, 2024 at 12:12:29PM +0000, Andrew Dunstan wrote: >>>>> Skip some permissions checks on Cygwin >>>>> >>>>> These are checks that are already skipped on other Windows systems. >>>>>        skip "unix-style permissions not supported on Windows", 2 >>>>> -      if ($windows_os); >>>>> +      if ($windows_os || $Config::Config{osname} eq 'cygwin'); >>>>> -    skip "group access not supported on Windows", 3 if ($windows_os); >>>>> +    skip "group access not supported on Windows", 3 >>>>> +      if ($windows_os || $Config::Config{osname} eq 'cygwin'); >>>> Cygwin does support Unix-style permissions, so I'm not following the >>>> rationale >>>> for this change.  Can you say more? >>> It seems to have some difficulties with group permissions in some >>> cases. I >>> improved the error message a bit, and got a bunch that all look like >>> this: >>> >>> build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/global/6303 >>> mode must be 0640, not 0600 >>> build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/global/pg_control >>> mode must be 0640, not 0600 >>> build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/global/pg_filenode.map >>> mode must be 0640, not 0600 >>> build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5 >>> mode must be 0750, not 0000000000000000000000000000000000000700 >>> build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5/112 >>> mode must be 0640, not 0600 >>> build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5/113 >>> mode must be 0640, not 0600 >>> build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5/1247 >>> mode must be 0640, not 0600 >>> build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5/1247_fsm >>> mode must be 0640, not 0600 >>> build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5/1247_vm >>> mode must be 0640, not 0600 >>> build/testrun/initdb/001_initdb/log/regress_log_001_initdb:*main::STDERR/home/Administrator/postgresql/build/testrun/initdb/001_initdb/data/tmp_test_qlhf/data_group/base/5/1249 >>> mode must be 0640, not 0600 >>> >>> >>> Apparently there's some issue with the group None. I don't mind digging >>> further if you think it might be worthwhile, but it seemed to me that >>> since >> I'll guess digging further is not worthwhile.  Even if it is a >> PostgreSQL bug, >> the consequences seem limited to unintentionally withholding group >> access. >> There's a remote chance you're using a "noacl" mount, where this >> result could >> fit. > > > mount doesn't show noacl being used > > >> >>> we didn't mind too much skipping these checks on native Windows we >>> wouldn't >>> mind on Cygwin either. >> The reasons for skipping the test are different on native Windows >> (does not >> provide POSIX file modes) vs. Cygwin (has POSIX file modes, but the >> combination of PostgreSQL and Cygwin somehow reaches the wrong mode). > > > True. > > > I wonder if Marco can shed any light on what's going on here. > > > cheers > > > andrew > are you referring to a specific version or is an old issue ? Regards Marco