Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1izt37-0000yH-2p for pgsql-committers@arkaria.postgresql.org; Fri, 07 Feb 2020 02:07:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1izt34-0001ie-TQ for pgsql-committers@arkaria.postgresql.org; Fri, 07 Feb 2020 02:07:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1izt33-0001iX-NI for pgsql-committers@lists.postgresql.org; Fri, 07 Feb 2020 02:07:14 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1izt2w-0001Kc-PU for pgsql-committers@lists.postgresql.org; Fri, 07 Feb 2020 02:07:12 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 9E675377; Thu, 6 Feb 2020 21:07:04 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 06 Feb 2020 21:07:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=Le9MJN/U5vyLQptpNxTOquW8wGo +RWdEYdpPlfSKeE8=; b=FzbhkdRv9c5LzK9bt7wpEcOqXPSVYxXsFud6UXcGtxr aUJLN+OUqh1gwERVXoFoaznwNd/ldd212JKZjPaYeeIRIqYmjW7MlU9Iv263Nv6g 7hYdjK+7ThjGzK1JFLrAm1kq34VGVCmSvcw67zxhNMg5Hrth3NuwEXnEa9yGsckM A69Eclw3HUDKEEFf41/JtyAj09mrH0i8GrVFlT8CCJz9H3hOkSnLNpUj+RXd8Q6q eZBivoZyzbRZMo0hnoY+myjOkjC8JsXH8foGT+P2tceXk7mMG/kRsjDJXn0AbjKY slfiFwlxAqwIfTohKcKpo6CrRA09xyUOVhyGqeqItNg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Le9MJN /U5vyLQptpNxTOquW8wGo+RWdEYdpPlfSKeE8=; b=uXRSJmQRk7kpWmrkqxPELl g4DFPfTKL4qVVvYVh7bf3KxVuC+LJU9/shJGf8ffXAdYiQxQauf9v9+CXd28q3MW b9NkFhiMnLGu6D+DtFa/Mn7g+3+JHTmCNOOkTGmSm5fbrKmsYmVVwncUJhTfhcQN RqCoRkT5rclpn1Lz6B8RkYnjZ96nhyk2nlouyhNMk5j0m5pUJd6i8DJNj83UC2Ru mGi+zkA6j0vezGbMm/gOUBN9wauC5oUWGWXGUxe/7KLqQ1pF3TPM1kEfBsuSq8v6 Z8d4gZIxCuzmUmZKDdhwXP4UmQjlgtt4Ad60EPx95Jg5od2OPP02eCm4jUpKXpRQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrheeggdegfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecukfhppeeije drudeitddrvddujedrvdehtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-217-250.hsd1.ca.comcast.net [67.160.217.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 8D4E630607B0; Thu, 6 Feb 2020 21:07:03 -0500 (EST) Date: Thu, 6 Feb 2020 18:07:02 -0800 From: Andres Freund To: Magnus Hagander , Ian Barwick Cc: Michael Paquier , Stephen Frost , pgsql-committers Subject: Re: pgsql: Prevent running pg_basebackup as root Message-ID: <20200207020702.o64l2i4mkv5us6oy@alap3.anarazel.de> References: <20200205172259.GW3195@tamriel.snowman.net> <20200206070417.GJ23913@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2020-02-06 13:02:07 +0100, Magnus Hagander wrote: > I agree with Stephen that this seems to be misguided, and my vote is > to revert. +1. I honestly don't think we should increase the number of "root disallowed" tools unless actually necessary. Maybe that's looking too far into the future, but I'd like to see improvements to pg_basebackup that make it integrate with root requiring tooling, to do more efficient base backups. E.g. having pg_basebackup handle start/stop backup and WAL handling, but do the actual backup of the data via a snapshot mechanism (yes, one needs start/stop backup in the general case, for multiple FSs), would be nice. Btw, I think it's good form in a discussion like this to CC the original author. I'll also add a reference to this discussion from the -hackers thread. Greetings, Andres Freund