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 1sM8Wh-000mmK-C0 for pgsql-committers@arkaria.postgresql.org; Tue, 25 Jun 2024 15:56:11 +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 1sM8Wf-00GZLG-6T for pgsql-committers@arkaria.postgresql.org; Tue, 25 Jun 2024 15:56:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sM8We-00GZL8-OQ for pgsql-committers@lists.postgresql.org; Tue, 25 Jun 2024 15:56:09 +0000 Received: from mail-yw1-x112e.google.com ([2607:f8b0:4864:20::112e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sM8WX-003VTn-Qh for pgsql-committers@lists.postgresql.org; Tue, 25 Jun 2024 15:56:08 +0000 Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-63bce128c70so42068977b3.0 for ; Tue, 25 Jun 2024 08:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20230601.gappssmtp.com; s=20230601; t=1719330960; x=1719935760; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=9zUAGdxaZqHkk8KqNztkGOLibez1InUap1mwwsNxKqQ=; b=Ej91dpKV9oWNcVTORH+fNCzPUuH3oge6gSEF4QA5/9fN9Fj6LtCnh1O2w+vkOyxWuX ehjW3xxEQ2vJh8kYh5UjrK/tJ3UY83uqCYXCpn9mw7TcppvoDpyUvY63RmgwX1tjVhIN C9kB4wtAzUop09NBFx5b+Ol/QO5SsTeO4nTnnz7FJrlKnMsMxYAZKmrF1mBCVLSWE/NJ eoEgYSknGyPSB3IW+3Lp5497FifjarY+OkPGlFLPywDqcRbbQ0RZji5RveknYWgSQHBM s7/Yxw2VDKfdpNOsZvnNBDLyqyka40fQQ2dR60ocf6QEOV1tYKrn9f0570udPa49CHEc tWAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719330960; x=1719935760; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from: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=9zUAGdxaZqHkk8KqNztkGOLibez1InUap1mwwsNxKqQ=; b=SPX8KqNa99Qo9WvGRJPuT0ClFHKQinsNY322/Ed1OWCOZQBfKN7UJUqH7TN9ktelb4 DATAKnTROTEEBiAWuJyOl4qwQ2hKcVsnEbUXeEgZp9Kqg37ELC7fyuV50OzrQugQ65D8 1iF8shn4Jw7n3QVJGshu/2Wfza4Nh92shVzaApPYhKjBirJ75TYeY5xbGGQJo0oYvZWY tOIVb77jQ2OW5OZpg6yELHMmyCshtopp6mVSw/LMquMUUiQvqH2P/g5yP1kTggmh474D xW3v+/cV69PgkfEvWfyMtfxnpZ9E6fhzavp1y8r2h4ho1AA7fcPf1WEMxEK5aDz39cE1 nSiQ== X-Gm-Message-State: AOJu0YzNQ82GwQfzJUwTWjRjVge6hgTBKS+ZAN08JabO4N2tw+o28fNi 2pD6Mwb0zCVzJ4Z7diaFl1MS75ioitKiUHS/wb2UxCPJAOE27PdJt+hs0zby8xQ= X-Google-Smtp-Source: AGHT+IHMcgo//P4znzAgDAdM8lGBu5E8VHVd5TmpYNFZ5qHbgB+QXD+s1oX7f4TOkk1QO4JClck4kg== X-Received: by 2002:a05:690c:4905:b0:62c:ffb9:bb87 with SMTP id 00721157ae682-6462df2b681mr35815817b3.4.1719330959799; Tue, 25 Jun 2024 08:55:59 -0700 (PDT) Received: from ?IPV6:2605:a601:9180:9800::2bb? ([2605:a601:9180:9800::2bb]) by smtp.googlemail.com with ESMTPSA id 00721157ae682-63f1107ec66sm35373207b3.25.2024.06.25.08.55.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Jun 2024 08:55:59 -0700 (PDT) Message-ID: <184ccf22-2503-4b41-be3b-1a59c11eef11@dunslane.net> Date: Tue, 25 Jun 2024 11:55:58 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Skip some permissions checks on Cygwin To: Marco Atzeri , 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> <43ccedba-ea29-44a3-8ed9-44e764e9ff92@gmail.com> From: Andrew Dunstan Content-Language: en-US Autocrypt: addr=andrew@dunslane.net; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAHNJEFuZHJldyBEdW5zdGFuIDxhbmRyZXdAZHVuc2xhbmUubmV0PsLAmwQTAQgARQIbAwIX gAIZAQULCQgHAgMiAgEGFQoJCAsCBBYCAwECHgcWIQTkPlhGHfx8v0RpFaWZ+n/LWfw7gQUC ZFlxxwUJG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uNA1rlqrR3EtpYk8B/wtS 5dIMD7Q8hwQpL+4C6GNpb6ZKnPkLi47pDOLhz2qBrqN+rqUEsT3YnExYpzj5yOBi+FlmV1Hw 49QYe1sn2ZPs In-Reply-To: <43ccedba-ea29-44a3-8ed9-44e764e9ff92@gmail.com> 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 2024-06-24 Mo 6:43 PM, Marco Atzeri wrote: > 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 ? > > This is probably an old issue. We haven't been running TAP tests on Cygwin (at least in the buildfarm) so the issue hasn't surfaced before now. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com