Re: SE-PostgreSQL and row level security - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: SE-PostgreSQL and row level security
Date
Msg-id 20090216074513.GA24770@svana.org
Whole thread Raw
In response to Re: SE-PostgreSQL and row level security  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Responses Re: SE-PostgreSQL and row level security
Re: SE-PostgreSQL and row level security
List pgsql-hackers
On Mon, Feb 16, 2009 at 11:10:19AM +0900, KaiGai Kohei wrote:
> At the previous discussion, two items were pointed out.
>
> The one is called as covert channel. When a tuple with PK is refered by
> one or more tuples with FK, row-level control prevents to update or delete
> the PK, even if the FK is invisible from users. It allows users to infer
> existence of invisible FK.

One thing I keep missing in this discussion: the term "row-level
security" in the above senstence in not the important part. Right now
you can revoke SELECT permission on a table with a foreign key and it
will still prevent UPDATEs and DELETEs of the primary key, allowing
users to infer the existance of an invisible FK.

This is the same "covert channel", so why is it a problem for
SE-Postgres and not for normal Postgres?

Is it because revoking permissions is not considered a security
mechanism or something? I'm sure it's obvious, I'm just not seeing it.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

pgsql-hackers by date:

Previous
From: ITAGAKI Takahiro
Date:
Subject: Re: connection logging dtrace probe
Next
From: KaiGai Kohei
Date:
Subject: Re: SE-PostgreSQL and row level security