pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: [COMMITTERS] pgsql: Fix column-privilege leak in error-message paths
Date: Thu, 29 Jan 2015 22:37:27 -0500
Message-ID: <20150130033727.GC3854@tamriel.snowman.net> (raw)
In-Reply-To: <30446.1422569178@sss.pgh.pa.us>
References: <E1YGWUl-0004N2-O4@gemulon.postgresql.org>
	<30446.1422569178@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Tom,

* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Stephen Frost <sfrost@snowman.net> 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[]).
> 
> 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

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (9+ messages)

Message-ID: <20150130033727.GC3854@tamriel.snowman.net>
Permalink:  ../20150130033727.GC3854@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20150130033727.GC3854@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: sfrost@snowman.net, tgl@sss.pgh.pa.us, pgsql-hackers@postgreSQL.org
  Subject: Re: [COMMITTERS] pgsql: Fix column-privilege leak in error-message paths
  In-Reply-To: <20150130033727.GC3854@tamriel.snowman.net>
  References: <E1YGWUl-0004N2-O4@gemulon.postgresql.org> <30446.1422569178@sss.pgh.pa.us> <20150130033727.GC3854@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox