Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clzdt-0007fX-D9 for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Mar 2017 15:06:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1clzds-0002g0-DA for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Mar 2017 15:06:12 +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_2) (envelope-from ) id 1clzdr-0002em-3Y for pgsql-hackers@postgresql.org; Thu, 09 Mar 2017 15:06:11 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clzdg-0003eO-UA for pgsql-hackers@postgresql.org; Thu, 09 Mar 2017 15:06:09 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 533CF5F794; Thu, 9 Mar 2017 10:05:00 -0500 (EST) Date: Thu, 9 Mar 2017 10:05:00 -0500 From: Stephen Frost To: Mike Palmiotto Cc: pgsql-hackers@postgresql.org Subject: Re: partitioned tables and contrib/sepgsql Message-ID: <20170309150500.GF9812@tamriel.snowman.net> References: <20170309144718.GE9812@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="owfFVQHByG15DiRd" Content-Disposition: inline In-Reply-To: X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 10:02:55 up 243 days, 16:27, 17 users, load average: 0.11, 0.15, 0.14 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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --owfFVQHByG15DiRd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Mike, * Mike Palmiotto (mike.palmiotto@crunchydata.com) wrote: > On Thu, Mar 9, 2017 at 9:47 AM, Stephen Frost wrote: > > While going over the contrib modules, I noticed that sepgsql was not > > updated for partitioned tables. What that appears to mean is that it's > > not possible to define labels on partitioned tables. As I recall, > > accessing the parent of a table will, similar to the GRANT system, not > > perform checkes against the child tables, meaning that there's no way to > > have SELinux checks properly enforced when partitioned tables are being > > used. >=20 > I'll start taking a look at this. Presumably we'd just extend existing > object_access_hooks to cover partitioned tables? At least on first blush that seems like the right approach. We'll need to make sure that the SECURITY LABEL system will properly work with partitioned tables too, of course, and that the checks are called when a user queries a partitioned table. Then we'll need regression tests to make sure we get it all correct and don't screw it up in the future. ;) > > This is an issue which should be resolved for PG10, so I'll add it to > > the open items list. >=20 > I'll grab it. Thanks. Excellent, thanks! Stephen --owfFVQHByG15DiRd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYwW8bAAoJEO1sijiDR2RVbzoP/2VqSABsWKaqWjEBQCgZ3X1U /gbEtXs31+osI4/KLsEV2NpXaD/uXXoOzcoT3PwEjHRyD21uECu/HsTXw7tviCBm BFJn/xHvttgogRfUitUfAfZVUGQFsEjwJ4QLoiqjU2cv7H66EvB319CR+03K5GgW nzwy9q8dTy9kyZZssUrypH+d2c4HXJBPovUO6BU7jftXwF2tv3T8bqlXgSdpb8XL 4csKjZ6YvZ9VXXgGSwKiCA9cclV2Dwp6vEDpUpuZ9sPyYBEpktHBXWt40kG/+KyG EshQLxqK+0rjhr5AEwzraI9gEd5tOiAreh3nDOy81gv2s5MV5hUUAhTY7IXnvwGj p6DNmJ1kRwU0+BNhRehgWAvWilvtS4kyP2a13Rm/Zdmc0Daj0xhKxvRpr1nBXDGD 35poU7tQXKBgeaBs84iLRBch2HAeQzl0NTUJhKtJwX2sGSdlVIbunvakDyt8KeIm xfH+rTJJIYpuVYN8aPV0MCm4xtj+kFIw4XXRuFklff0SJ/m0R+CY/N86mGkBgQMO uuJyGtAJbvBBdSzEBGugMSVb+Gwpr5KFnCMOLM9viw6wtqh7QjfLmX8UDfY2sL2E KpbNOiRlD++WVVJ/l4pTBvjYGZliW5kveyQYgB3uyreSUYjgGp3WebVjJE27fgN2 ZJs9V/Uj7cVg0aCprM7P =b5la -----END PGP SIGNATURE----- --owfFVQHByG15DiRd--