Re: [BUGS] BUG #13694: Row Level Security by-passed with CREATEUSER permission
Re: [BUGS] BUG #13694: Row Level Security by-passed with CREATEUSER permission
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Joe Conway writes:
> On 10/21/2015 11:26 AM, Andres Freund wrote:
>> On 2015-10-21 11:17:44 -0700, Tom Lane wrote:
>>> I wonder if it's time yet to remove those keywords. We've had the
>>> SUPERUSER spelling since 8.1, and this report should remind us that
>>> people get confused by the old spellings.
>> +1 for doing that in 9.6.
> 1++
Attached patch rips out CREATEUSER and NOCREATEUSER options lock, stock,
and barrel.
Another possibility is to change them to actually mean CREATEROLE and
NOCREATEROLE. I think probably a clean break is better though.
regards, tom lane
diff --git a/doc/src/sgml/ref/alter_role.sgml b/doc/src/sgml/ref/alter_role.sgml
index 7638817b830a1eb73ab59174591fe6eaf3378453..da36ad96967e7c842c28f5787b5ec0dc48ec5a60 100644
*** a/doc/src/sgml/ref/alter_role.sgml
--- b/doc/src/sgml/ref/alter_role.sgml
*************** ALTER ROLE NOCREATEDB</>
CREATEROLE
NOCREATEROLE
- CREATEUSER
- NOCREATEUSER
INHERIT
NOINHERIT
LOGIN
--- 159,164 ----
diff --git a/doc/src/sgml/ref/alter_user.sgml b/doc/src/sgml/ref/alter_user.sgml
index 0ffaa16da2fc75fcd1121dcde627837d6a8e9166..84a0c52191fc6c82687ef49df99ac30fdbfd8f1d 100644
*** a/doc/src/sgml/ref/alter_user.sgml
--- b/doc/src/sgml/ref/alter_user.sgml
*************** ALTER USER password'
--- 28,33 ----
diff --git a/doc/src/sgml/ref/create_role.sgml b/doc/src/sgml/ref/create_role.sgml
index 240c21ce85fcd1bd4cddd4bb6af109ef319f8175..38cd4c83696053f5b70fc514e9b3939cb842fb3a 100644
*** a/doc/src/sgml/ref/create_role.sgml
--- b/doc/src/sgml/ref/create_role.sgml
*************** CREATE ROLE
- CREATEUSER
- NOCREATEUSER
-
-
- These clauses are an obsolete, but still accepted, spelling of
- SUPERUSER and NOSUPERUSER.
- Note that they are not</> equivalent to
- CREATEROLE as one might naively expect!
-
-
-
-
-
INHERIT
NOINHERIT
--- 124,129 ----
diff --git a/doc/src/sgml/ref/create_user.sgml b/doc/src/sgml/ref/create_user.sgml
index 065999c85a4df610908c1e762d7bc3435406986b..6c690b36df561573f234de073e4ddbb10e6e9ec7 100644
*** a/doc/src/sgml/ref/create_user.sgml
--- b/doc/src/sgml/ref/create_user.sgml
*************** CREATE USER Re: [BUGS] BUG #13694: Row Level Security by-passed with CREATEUSER permission
От:
Joe Conway <mail@joeconway.com>
Дата:
On 10/21/2015 12:46 PM, Tom Lane wrote: > Attached patch rips out CREATEUSER and NOCREATEUSER options lock, stock, > and barrel. Looks good to me. > Another possibility is to change them to actually mean CREATEROLE and > NOCREATEROLE. I think probably a clean break is better though. I think that would be too confusing. I'd rather see them go away ala your patch. Joe -- Crunchy Data - http://crunchydata.com PostgreSQL Support for Secure Enterprises Consulting, Training, & Open Source Development
Re: Re: [BUGS] BUG #13694: Row Level Security by-passed with CREATEUSER permission
От:
Stephen Frost <sfrost@snowman.net>
Дата:
* Joe Conway (mail@joeconway.com) wrote: > On 10/21/2015 12:46 PM, Tom Lane wrote: > > Attached patch rips out CREATEUSER and NOCREATEUSER options lock, stock, > > and barrel. > > Looks good to me. > > > Another possibility is to change them to actually mean CREATEROLE and > > NOCREATEROLE. I think probably a clean break is better though. > > > I think that would be too confusing. I'd rather see them go away ala > your patch. Agreed. Thanks! Stephen
Re: Re: [BUGS] BUG #13694: Row Level Security by-passed with CREATEUSER permission
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Stephen Frost writes: > * Joe Conway (mail@joeconway.com) wrote: >> On 10/21/2015 12:46 PM, Tom Lane wrote: >>> Attached patch rips out CREATEUSER and NOCREATEUSER options lock, stock, >>> and barrel. >> Looks good to me. >>> Another possibility is to change them to actually mean CREATEROLE and >>> NOCREATEROLE. I think probably a clean break is better though. >> I think that would be too confusing. I'd rather see them go away ala >> your patch. > Agreed. Hearing no objections, done that way. regards, tom lane