From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Permissions for CREATE OPERATOR CLASS |
Date: | 2002-08-23 19:17:25 |
Message-ID: | 9868.1030130245@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
The new CREATE OPERATOR CLASS command will presently let you create an
index opclass if you own the datatype the class is for. With the
recent emphasis on security I'm thinking that this is not an adequate
permission check. We don't have any reasonable way of checking that
the provided set of operators and support functions meet the
expectations of the index AM and are mutually consistent. This means
it's not at all difficult to make an index opclass that will crash
the backend when used.
I'm inclined to require superuser permissions to do CREATE OPERATOR
CLASS. This would not be a loss of functionality compared to prior
releases, since the old way of creating an opclass involved manual
insertions into system catalogs, also a superuser-only thing.
Comments?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2002-08-23 19:20:48 | Re: psql password prompt |
Previous Message | Lamar Owen | 2002-08-23 18:16:02 | Re: v7.2.2 Released ... but not announced ... |