Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YH2Ok-0007n4-1n for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Jan 2015 03:37:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YH2Oj-0000WM-G1 for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Jan 2015 03:37:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YH2Oh-0000WF-Mb for pgsql-hackers@postgreSQL.org; Fri, 30 Jan 2015 03:37:31 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YH2Oe-0002qm-L5 for pgsql-hackers@postgreSQL.org; Fri, 30 Jan 2015 03:37:29 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 765335F7A0; Thu, 29 Jan 2015 22:37:27 -0500 (EST) Date: Thu, 29 Jan 2015 22:37:27 -0500 From: Stephen Frost To: Tom Lane Cc: pgsql-hackers@postgreSQL.org Subject: Re: [COMMITTERS] pgsql: Fix column-privilege leak in error-message paths Message-ID: <20150130033727.GC3854@tamriel.snowman.net> References: <30446.1422569178@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TleQwOBuDO0rokqK" Content-Disposition: inline In-Reply-To: <30446.1422569178@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-45-generic (x86_64) X-Uptime: 22:34:59 up 8 days, 3:24, 3 users, load average: 0.06, 0.07, 0.05 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --TleQwOBuDO0rokqK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tom, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > Fix column-privilege leak in error-message paths [...] > The cause of that is the logic added to BuildIndexValueDescription, which > ignores the possibility that some of the index columns are expressions > (which will have a zero in indkey[]). >=20 > I'm not sure that it's worth trying to drill down and determine exactly > which column(s) are referenced by an expression. I'd be content if we > just decided that any index expression is off-limits to someone without > full SELECT access, which could be achieved with something like Commit pushed with this approach. > (though a comment about it wouldn't be a bad thing either) and a comment added explaining it. Thanks again for pointing it out and please let me know if you see any further issues. Stephen --TleQwOBuDO0rokqK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJUyvx3AAoJEO1sijiDR2RV8NIQALIEicc6LKmpabFO6uxJpQIS gsIHBiMqOKh0l1iEk3mt/bnFdt5Fk6VolYvt5Qdy6LbUB0CdxMRoNP6nRPfeE5gQ zfsD5slWeSj79cp+rSs7M4xnlI81fxBPInpwYuJdYuPmqjgZYaxcxfGG/3lDQWs1 yakcfIJwOOUgxIyUDz5E0KZFNrSF6fi9b3yLgcHosiNfKs8T9As173YYmk0PtEO4 HFZ/D6IydWjLDfXJEHJCfcSVygOH+3autsbRVD0M0l1HpRRW9vfrQyx7z5urmD35 gb8gCL46Xlt5xfK/XOo7ioh8X1f0DMuwIps1dXVL17bI42hZRCIFlKEfKA98V+Ez D7iePc63V/Xo+aD4aggbtKv1mWtL1MhQYvbyZGw6b4WZb4FpV7LPQUxutm/nM+9n q3JF1vinANQprlFt23OpNAeR4hnU5Zj9KWGANzf2CJXB3IqrfnmTdcMwSzWHa6pS 9U86Jik6Jc+NeiBX31ikUfUsw+SzkxGLaJELNZwYLN5Lr4Ofdpl3Kny//0jawlDN 1CVKkzNKXGM2BjBdEN/U/yDX8+M76B688w+7AtS0wK9f4p4wkMd1LhU4/EfI3zX0 Pz7ri0muEO3iGmC9faoQ33O+ZBFre6/T7tINU2tyORKMW5FByUjlo5MvSEyIIQc4 T0nzb1MRTkUb5dMkeGBl =xkR/ -----END PGP SIGNATURE----- --TleQwOBuDO0rokqK--