pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Durumdara <durumdara@gmail.com>
Cc: Charles Clavadetscher <clavadetscher@swisspug.org>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Remove default privilege from DB
Date: Fri, 16 Feb 2018 10:35:28 -0500
Message-ID: <20180216153528.GI2416@tamriel.snowman.net> (raw)
In-Reply-To: <CAKFQuwZua8+4ww+HJ1kTUw=ZSBxrsFxoKauxVGhwWRKtDgVouA@mail.gmail.com>
References: <CAEcMXhn2uWDFyQ=dLzeEhdoyuvqvgYaLnOZbVmY+g3oR_NKr3g@mail.gmail.com>
	<09ca01d3a3e0$685ca460$3915ed20$@swisspug.org>
	<CAEcMXhm5sb-cw1Yek2T7dGnWJRP8-6Vr7kreQAC1Q-CY8VY=pw@mail.gmail.com>
	<0f5a01d3a65f$a0a38010$e1ea8030$@swisspug.org>
	<CAEcMXhk8YVgiQSD4V9mnk6ex1FxSSxK_zx24SmrWR-fvUs3Ckg@mail.gmail.com>
	<CAEcMXhm4=GhR4fe6UDn5jq+mWikJnmAqiztfAwM6i-z5Z3hCLQ@mail.gmail.com>
	<CAEcMXhnh1sOz10U3-bDFMmCYgmfC6sCQiK4zy-z7oBJMQBmmZQ@mail.gmail.com>
	<CAKFQuwZua8+4ww+HJ1kTUw=ZSBxrsFxoKauxVGhwWRKtDgVouA@mail.gmail.com>

Greetings,

* David G. Johnston (david.g.johnston@gmail.com) wrote:
> On Fri, Feb 16, 2018 at 7:56 AM, Durumdara <durumdara@gmail.com> wrote:
> 
> > I want to know what happened in the background.
> > I will make "negative" state if I revoke DefACL without prior grant?
> 
> ​Not really following the whole thread but figured I'm comment on this
> point that confused me in the past as well.​
> 
> ​Not sure if this is what you mean but there is no concept of "negative
> state" in the permissions system.  Everything starts out with no
> permissions.  Grant adds permissions and revoke un-adds granted
> permissions.​  Revoking something that doesn't exist is either a no-op or a
> warning depending on the context - either way its doesn't setup a
> "forbidden" state for the permission.

This isn't entirely correct.  Functions are the classic example where
EXECUTE to PUBLIC is part of the default and the "negative" state of
having a function where EXECUTE is REVOKE'd from PUBLIC is entirely
reasonable and even common.

Further, object owners also have a default set of privileges which can
be revoked from them, and that's true of basically all objects.

> Revoking/granting on default ACLs never affects already existing objects.

Right, to change existing ACLs one would use GRANT ON ALL or individual
GRANT statements.

Thanks!

Stephen

Attachments:

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

view thread (12+ messages)  latest in thread

Message-ID: <20180216153528.GI2416@tamriel.snowman.net>
Permalink:  ../20180216153528.GI2416@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20180216153528.GI2416@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-general@postgresql.org
  Cc: sfrost@snowman.net, david.g.johnston@gmail.com, durumdara@gmail.com, clavadetscher@swisspug.org
  Subject: Re: Remove default privilege from DB
  In-Reply-To: <20180216153528.GI2416@tamriel.snowman.net>
  References: <CAEcMXhn2uWDFyQ=dLzeEhdoyuvqvgYaLnOZbVmY+g3oR_NKr3g@mail.gmail.com> <09ca01d3a3e0$685ca460$3915ed20$@swisspug.org> <CAEcMXhm5sb-cw1Yek2T7dGnWJRP8-6Vr7kreQAC1Q-CY8VY=pw@mail.gmail.com> <0f5a01d3a65f$a0a38010$e1ea8030$@swisspug.org> <CAEcMXhk8YVgiQSD4V9mnk6ex1FxSSxK_zx24SmrWR-fvUs3Ckg@mail.gmail.com> <CAEcMXhm4=GhR4fe6UDn5jq+mWikJnmAqiztfAwM6i-z5Z3hCLQ@mail.gmail.com> <CAEcMXhnh1sOz10U3-bDFMmCYgmfC6sCQiK4zy-z7oBJMQBmmZQ@mail.gmail.com> <CAKFQuwZua8+4ww+HJ1kTUw=ZSBxrsFxoKauxVGhwWRKtDgVouA@mail.gmail.com> <20180216153528.GI2416@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