view permissions problem - featuer or bug?

From: Travis Bauer <trbauer(at)indiana(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: view permissions problem - featuer or bug?
Date: 2000-07-07 16:27:08
Message-ID: Pine.GSO.4.21.0007071120200.29609-100000@mantaray.cs.indiana.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have a set of tables and some views which perform calculations on
those table to which no one except the group officestaff has
any permissions. No problem.

I tried to create views to which some particular client would have
permissions. These views would be filtered versions of the private views.
Herein lies the problem. If any of those underlying veiws call functions
that access tables to which the user does not have permissions, or if any
of those underlying views have sub-select statements (such as "where x in
(select . . . )") the user gets access denied errors.

Is this a feature or a bug? On the one hand, it certainly provides tight
security. However, it seems like if you give someone permissions on a
view, that view ought to be allows to perform whatever it needs to get the
data back out regardless of other underlying permissions.

----------------------------------------------------------------
Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer
----------------------------------------------------------------

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-07-07 16:40:19 Re: 'Zombie' tables
Previous Message Yves Dorfsman 2000-07-07 16:19:44 raw devices