From: Stephen Frost <sfrost@snowman.net>
To: Mike Palmiotto <mike.palmiotto@crunchydata.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: partitioned tables and contrib/sepgsql
Date: Thu, 9 Mar 2017 10:05:00 -0500
Message-ID: <20170309150500.GF9812@tamriel.snowman.net> (raw)
In-Reply-To: <CAMN686Ek=1EVfZDXyRQs3iNh9Fq36VKWKVMQPQM9yL+m0509nw@mail.gmail.com>
References: <20170309144718.GE9812@tamriel.snowman.net>
<CAMN686Ek=1EVfZDXyRQs3iNh9Fq36VKWKVMQPQM9yL+m0509nw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
Mike,
* Mike Palmiotto (mike.palmiotto@crunchydata.com) wrote:
> On Thu, Mar 9, 2017 at 9:47 AM, Stephen Frost <sfrost@snowman.net> 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.
>
> 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.
>
> I'll grab it. Thanks.
Excellent, thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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-hackers@postgresql.org
Cc: sfrost@snowman.net, mike.palmiotto@crunchydata.com
Subject: Re: partitioned tables and contrib/sepgsql
In-Reply-To: <20170309150500.GF9812@tamriel.snowman.net>
References: <20170309144718.GE9812@tamriel.snowman.net> <CAMN686Ek=1EVfZDXyRQs3iNh9Fq36VKWKVMQPQM9yL+m0509nw@mail.gmail.com> <20170309150500.GF9812@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