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 1sLqlu-00GuZi-CZ for pgsql-committers@arkaria.postgresql.org; Mon, 24 Jun 2024 20:58:42 +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 1sLqls-00C0n3-O1 for pgsql-committers@arkaria.postgresql.org; Mon, 24 Jun 2024 20:58:41 +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 1sLqls-00C0mr-AT for pgsql-committers@lists.postgresql.org; Mon, 24 Jun 2024 20:58:40 +0000 Received: from mail-yb1-xb2a.google.com ([2607:f8b0:4864:20::b2a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sLqlp-003MpJ-PI for pgsql-committers@lists.postgresql.org; Mon, 24 Jun 2024 20:58:40 +0000 Received: by mail-yb1-xb2a.google.com with SMTP id 3f1490d57ef6-df481bf6680so4434552276.3 for ; Mon, 24 Jun 2024 13:58:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20230601.gappssmtp.com; s=20230601; t=1719262715; x=1719867515; 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=3OgTGTzy3iEaa0ka4y7IL6y+UX0svmlf1QOI2G+7E1I=; b=lyGgiwgkbqwcrzRDQhm8+99bLqVjWFK5CbYoWKx7ARxCQupQHo+HUSk9aR+IhWx1SZ j7ii+5TCBzH0ebPckYLDUz+mgNW81im50oJC6YFyD4QcM2XGyNkZQl05P0et3aZuhQC1 wIfReZFV3vOPXhqjEFtt9srlbie2FKHUkbJJ3joFsOjEqhgEwf/jQZKVoJmxI/amyLP9 4+pbZadLfOWI8wFCVEaDCGn9E1wJD85J0xILmT1op0oirpvJoEjNfc/A4iJ4ybtjZPtC w7TXWkI2d0XzxRot0kO2RjdcZpUtV1L8FCF5xWjaZRFgxjSjzWQ1z1k8OidbVtlzjzpo Suwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719262715; x=1719867515; 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=3OgTGTzy3iEaa0ka4y7IL6y+UX0svmlf1QOI2G+7E1I=; b=MBztBGWCYwm+qay7OvCk1qjSAVBwHUoOVh1JBMu3v9LmTnTMRy3MzW2vs1AJfQQT1L gjwK6/CpRBQHBIcEJGEkHK5omh8R+4+67qR43QjbtxHgEpX9BERkIkSozibTHWaQ+9Ta l1LRS/GGKHtR8i7j+yv9oK6VDavKh4QLMigDce3lFbVtdPK8Ly3yDZ9N0ibRyD9bib1G 8Rquz19HfE2oDsmZkNA6fgz2PD6F/vkaBZJVRJ8XEYtS/Fgi8FV/5LmMGwta8BJP0RMi CknVQfZVi14NAoumM56COnBy/U92YCglNtsAPLa1XS0VXdGY6gur97IEEnMdglsb2+h8 CrHA== X-Gm-Message-State: AOJu0YwGWHaIkUV1hLY72sDurCSV7pSXXP5XHuL8zm3qV2YCAFbKe2xa /YEvL22WXC6lmGd05Q9uFIMCZgtwRqaWFv8mvetF6uwxgyr+QlkmL7JJw6nKov1B1KHDDVpEFIr r X-Google-Smtp-Source: AGHT+IEtGQlpU9YoBg0VQWiRjUL8+qCKlonc94RqaOxTl6vVbtPW4S4MzUstI8BPJiWkBqgMnqboBw== X-Received: by 2002:a25:3607:0:b0:df4:e36b:e9 with SMTP id 3f1490d57ef6-e03040142aamr5489841276.54.1719262715227; Mon, 24 Jun 2024 13:58:35 -0700 (PDT) Received: from ?IPV6:2605:a601:9180:9800::2bb? ([2605:a601:9180:9800::2bb]) by smtp.googlemail.com with ESMTPSA id 3f1490d57ef6-e032327f82csm56928276.32.2024.06.24.13.58.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Jun 2024 13:58:34 -0700 (PDT) Message-ID: <003457fd-cc74-4e6a-bc0e-2891d40d4621@dunslane.net> Date: Mon, 24 Jun 2024 16:58:33 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Skip some permissions checks on Cygwin To: Noah Misch , marco atzeri Cc: pgsql-committers@lists.postgresql.org References: <20240624010311.0b.nmisch@google.com> <20240624204221.42.nmisch@google.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 ZFlxxwUJGVGAbgAKCRCZ+n/LWfw7gXikB/9ZdcUy6CTBFIIuL/bVsc1eLEW/gJBjJ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Lhz2qBrqN+rqUEsT3YnExYpzj5yOBi+FlmV1Hw 49QYe1sn2ZPs In-Reply-To: <20240624204221.42.nmisch@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 -- Andrew Dunstan EDB: https://www.enterprisedb.com