Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntBgE-0000hk-Fl for pgsql-hackers@arkaria.postgresql.org; Mon, 23 May 2022 17:17:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntBgD-0001vM-74 for pgsql-hackers@arkaria.postgresql.org; Mon, 23 May 2022 17:17:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntBgC-0001vD-Tu for pgsql-hackers@lists.postgresql.org; Mon, 23 May 2022 17:17:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntBg6-0003t1-GX for pgsql-hackers@postgresql.org; Mon, 23 May 2022 17:17:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 24NHH8pV1290330; Mon, 23 May 2022 13:17:08 -0400 From: Tom Lane To: Nathan Bossart cc: pgsql-hackers@postgresql.org Subject: Re: allow building trusted languages without the untrusted versions In-reply-to: <20220523165403.GC938919@nathanxps13> References: <20220520225619.GA876272@nathanxps13> <571753.1653092411@sss.pgh.pa.us> <20220523165403.GC938919@nathanxps13> Comments: In-reply-to Nathan Bossart message dated "Mon, 23 May 2022 09:54:03 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1290328.1653326228.1@sss.pgh.pa.us> Date: Mon, 23 May 2022 13:17:08 -0400 Message-ID: <1290329.1653326228@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > On Fri, May 20, 2022 at 08:20:11PM -0400, Tom Lane wrote: >> Lastly, you've offered no reason to think this would provide any real >> security improvement. Someone who's gained the ability to issue CREATE >> EXTENSION on untrusted extensions has already got all the privileges he >> needs; leaving out a few extension files is at most going to slow him >> down a bit on the way to full filesystem access. (See, eg, COPY TO >> PROGRAM.) > I'd like to provide the ability to disallow these other things, too. This > is intended to be a first step in that direction. There would probably be some interest in a "--disable-disk-access" configure option that did all of this stuff (and some more things too), with the aim of locking down *all* known paths to filesystem access. I don't see much value in retail options that do some of that. In fact, what they might mostly accomplish is to give people a false sense of security. regards, tom lane