Re: Security Issue..

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Rod Taylor <rbt(at)zort(dot)ca>
Cc: Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Security Issue..
Date: 2002-04-15 01:45:13
Message-ID: Pine.LNX.4.30.0204142143140.717-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rod Taylor writes:

> The solution? Information_Schema coupled with no direct access to
> pg_catalog. Internals can use pg_catalog, possibly super users, but
> regular users shouldn't be able to do any reads / writes to it
> directly -- as per spec with definition_schema.

The catch on this is that privileges on views don't work quite perfectly
yet. For instance, if you create a view

CREATE VIEW bar AS SELECT * FROM foo;

then the statement

SELECT * FROM bar;

needs privileges to read "foo". The privileges would need to be changed
to be checked at view creation time.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gavin Sherry 2002-04-15 02:02:46 Re: [PATCHES] WITH DELIMITERS in COPY
Previous Message Rod Taylor 2002-04-15 01:42:19 Re: Security Issue..