Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zoy5g-0007Iq-VI for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Oct 2015 18:26:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zoy5f-0002sH-UL for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Oct 2015 18:26:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zoy5f-0002qa-GT for pgsql-bugs@postgresql.org; Wed, 21 Oct 2015 18:26:23 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zoy5c-0001El-Ms for pgsql-bugs@postgresql.org; Wed, 21 Oct 2015 18:26:22 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id D2B915F7A6; Wed, 21 Oct 2015 14:26:19 -0400 (EDT) Date: Wed, 21 Oct 2015 14:26:19 -0400 From: Stephen Frost To: Tom Lane Cc: Joe Conway , justin.catterson@sofiebio.com, pgsql-bugs@postgresql.org Subject: Re: BUG #13694: Row Level Security by-passed with CREATEUSER permission Message-ID: <20151021182619.GX3685@tamriel.snowman.net> References: <20151021164233.3017.94954@wrigleys.postgresql.org> <5627D3D9.8080409@joeconway.com> <22555.1445451464@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xztosHqjL9oh4Umx" Content-Disposition: inline In-Reply-To: <22555.1445451464@sss.pgh.pa.us> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-61-generic (x86_64) X-Uptime: 14:25:56 up 78 days, 2:56, 11 users, load average: 0.18, 0.16, 0.13 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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --xztosHqjL9oh4Umx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Joe Conway writes: > > On 10/21/2015 09:42 AM, justin.catterson@sofiebio.com wrote: > >> Users with the CREATEUSER permission do not evaluate Row Level Security > >> functions. pg_user usebypassrls is set to false. >=20 > > Not a bug. See > > http://www.postgresql.org/docs/9.5/static/sql-createrole.html >=20 > > "CREATEUSER > > NOCREATEUSER >=20 > > 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!" >=20 > 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. Probably past time, considering the obvious confusion to CREATEROLE and NOCREATEROLE. Thanks! Stephen --xztosHqjL9oh4Umx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJWJ9jLAAoJEO1sijiDR2RVo6sP/iu6BB5YmBeEgM0v57oUG1Vv cZmEWr0mVL+5PI0AoXYg1KaOS65mv43IutDH5K+HgTo6Ip353pdxyXfVNdBjuqA0 /DUxD2bzYQltdi9CjinaudctDfNEq0QJi4R1PRB2GunpvbPwlPh+nCixRISnIYZi mkYEFNeRenfcCH9DCnpIivCvS+6I6JIs/a0m2BVsB6Ef4q5k+M+UrS+hOODaia5k R3jdM5zL9odckC1N9jFfjyIms5qOYLO2E/WlhJXpVsenNMWkoykj1AsGUno5fiWP dAytl/u47/zASpL4yMdKGeyif0zE2IR6GyESWdXCQXsSVf8VakV5D9CuUaso+8wy 0T9r3orbNxerDNTLTZnBhYsyGlq9XPoSrMMlCNQCwWULHH+fFTMWrRUsixZ3OSpy PRUNV8aGBQNuZqUdnPxYO3KIQgpAovhEa0y53ZOV8fZEMD9Yk0U9DGCOIJdeqLZ3 ODeDHU3ktaaK/py5BeEfTRCdnRVYYXPYpE0zkUo/tmDJsbxSAqL1aA/1QiV90G8q lOGy3Zy4dPOD8fVOqE4SFIpBRmTi6gIInrHgoi8Z5TzlplFKUy6AG05xkpzO7WDk PiX/AdhihX4k/5o56itgFkL/3yOK+Y7HZG1TqLgdXFUYeYtVfHKzCne2WuWBV8SG rJhc+LQO2Fa9Tq6Bf7SF =nkJK -----END PGP SIGNATURE----- --xztosHqjL9oh4Umx--