Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zoxlt-0006Qb-9r for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Oct 2015 18:05:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zoxls-00040l-KP for pgsql-bugs@arkaria.postgresql.org; Wed, 21 Oct 2015 18:05:56 +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 1ZoxlG-0003K9-Cb for pgsql-bugs@postgresql.org; Wed, 21 Oct 2015 18:05:18 +0000 Received: from wsip-72-214-29-243.sd.sd.cox.net ([72.214.29.243] helo=joeconway.com) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZoxlB-0000lz-MO for pgsql-bugs@postgresql.org; Wed, 21 Oct 2015 18:05:17 +0000 Received: from [192.168.4.41] (account jconway@joeconway.com [192.168.4.41] verified) by joeconway.com (CommuniGate Pro SMTP 6.1.4) with ESMTPSA id 15719180; Wed, 21 Oct 2015 11:05:13 -0700 Subject: Re: BUG #13694: Row Level Security by-passed with CREATEUSER permission To: justin.catterson@sofiebio.com, pgsql-bugs@postgresql.org References: <20151021164233.3017.94954@wrigleys.postgresql.org> From: Joe Conway Message-ID: <5627D3D9.8080409@joeconway.com> Date: Wed, 21 Oct 2015 11:05:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151021164233.3017.94954@wrigleys.postgresql.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fwUFKto477TptTtajXCjEdQU87t5I4aBe" X-Pg-Spam-Score: -0.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 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --fwUFKto477TptTtajXCjEdQU87t5I4aBe Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/21/2015 09:42 AM, justin.catterson@sofiebio.com wrote: > The following bug has been logged on the website: >=20 > Bug reference: 13694 > Logged by: Justin Catterson > Email address: justin.catterson@sofiebio.com > PostgreSQL version: 9.5beta1 > Operating system: Ubuntu 14.10 x64 > Description: =20 >=20 > Users with the CREATEUSER permission do not evaluate Row Level Security= > functions. pg_user usebypassrls is set to false. Not a bug. See http://www.postgresql.org/docs/9.5/static/sql-createrole.html "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!" And: http://www.postgresql.org/docs/9.5/static/ddl-rowsecurity.html "Table owners, superusers, and roles with the BYPASSRLS attribute bypass the row security system when querying a table." HTH, Joe --=20 Crunchy Data - http://crunchydata.com PostgreSQL Support for Secure Enterprises Consulting, Training, & Open Source Development --fwUFKto477TptTtajXCjEdQU87t5I4aBe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWJ9PZAAoJEDfy90M199hlSJcQAKFDCMLb21k0AzapMjkitBIx hlaKPb533Uk3My8FwE8w1FqEYHz47ddJr2y6Q2lE8TEituKHMKMy41n3jbOFHetg 8f0AqmjEG5j7XCXxaDyXf9uizyO8vLCC1MuNh9UBUsm0DTrOPLSGUq3ZfaVX/Fll TKzZc1RwFkJyqXvBwNzLkM9EDQVVNIflKDM8tnd1R3b5/8WWmEG7tkZ30+RnKN4e 7Cexf6/DgweO3kGnY9Nfy1yAR+VHDYlFjv0YQ3qw+5RYk+YDx2PKPoqj3rsEb+iQ uVTKYBl4x2jYT4smD9gVDQfyBM9U1UkC1wTm2W62vVNlYB21mNG2jGUyIWjRPsQn BeMwkAM6JXJpuHsBuTAZ8vzCyHc7yMRKQ6/G7EHuNxFC0TtCfYAivVskq+hOR555 8memxduCEkXgg333OLWyvzrpQ1EN/B4rem9TwbKoeVIyDda9ZFSjy57dPF4dxFrG ljuFEgxIYlX/8Z9PQHRWpyOIJHSiYcw4zfk4t7w/HQPWXFteiMfUkL8RLDoqViDC ivjQhVQdlu8JgQmgLI5J0audsOsz0mysvIXYe7YhEEtIW8DXwNNXe07hmlD159Qc zm1U378xCqqdk4u2RngKr5NxMbznjgnksh6KowuqlqD/cIGXc0g1HwV+YaVsvUdP 3HuCt5Q3lR3q6/j8YtJV =9I2K -----END PGP SIGNATURE----- --fwUFKto477TptTtajXCjEdQU87t5I4aBe--