pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Magnus Hagander <magnus@hagander.net>
Cc: sys-milan@statpro.com
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #9136: pg_is_xlog_replay_paused() should not need Superuser
Date: Fri, 29 Aug 2014 09:05:57 -0400
Message-ID: <20140829130557.GA15078@momjian.us> (raw)
In-Reply-To: <20140826225216.GI14956@momjian.us>
References: <20140207101636.26701.59633@wrigleys.postgresql.org>
	<20140417000206.GV7443@momjian.us>
	<CABUevEzhW3uk0FuG_U8EKO1zDyVLXvqvxjoE8ET1Xhx00hpoGA@mail.gmail.com>
	<20140418145323.GB28349@momjian.us>
	<20140826225216.GI14956@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Tue, Aug 26, 2014 at 06:52:16PM -0400, Bruce Momjian wrote:
> On Fri, Apr 18, 2014 at 10:53:23AM -0400, Bruce Momjian wrote:
> > On Fri, Apr 18, 2014 at 03:11:44PM +0200, Magnus Hagander wrote:
> > >     Is this correct?  Do we have proper super-user restrictions on all the
> > >     right fields now?
> > > 
> > > 
> > > I'm not sure what the security problem would be for allowing non-superusers to
> > > run pg_is_xlog_replay_paused(). And if there are none, there is no reason why
> > > the function should be restricted like that.
> > > 
> > >  Also, looking at that specific documentation page, ISTM it needs a better way
> > > to show which functions actually *do* require superuser privileges. In some
> > > groups it states which do require it, and in some where it doesn't. Perhaps we
> > > should add a column to each of the tables with a yes/no value indicating if
> > > superuser is required for that specific function? Or at least have every table
> > > be prefixed by a statement saying which require superuser.
> > 
> > Well, right now we seem to have an inconsistent setup that is being
> > complained about regularly.  Who can review it all and make a
> > recommendation?  Should we just hold all this for 9.5?
> 
> I have developed the attached patch.  I marked the xlog replay
> pause/resume functions as super-user, and marked the replication slots
> as super-user. I don't see any other place that is missing or needs a
> section heading. I don't think we need a new column as most functions in
> a section are either super-user only or not.

Patch applied, backpatch to 9.4.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (7+ messages)

Message-ID: <20140829130557.GA15078@momjian.us>
Permalink:  ../20140829130557.GA15078@momjian.us/
Also on:    postgresql.org/message-id/20140829130557.GA15078@momjian.us

 · 

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-bugs@postgresql.org
  Cc: bruce@momjian.us, magnus@hagander.net, sys-milan@statpro.com
  Subject: Re: BUG #9136: pg_is_xlog_replay_paused() should not need Superuser
  In-Reply-To: <20140829130557.GA15078@momjian.us>
  References: <20140207101636.26701.59633@wrigleys.postgresql.org> <20140417000206.GV7443@momjian.us> <CABUevEzhW3uk0FuG_U8EKO1zDyVLXvqvxjoE8ET1Xhx00hpoGA@mail.gmail.com> <20140418145323.GB28349@momjian.us> <20140826225216.GI14956@momjian.us> <20140829130557.GA15078@momjian.us>

* 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