X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 89C655285F for ; Fri, 27 May 2005 04:28:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 73220-10 for ; Fri, 27 May 2005 07:28:26 +0000 (GMT) Received: from latenight.fiasco.org.il (latenight.fiasco.org.il [192.117.122.39]) by svr1.postgresql.org (Postfix) with SMTP id 894A952859 for ; Fri, 27 May 2005 04:28:24 -0300 (ADT) Received: (qmail 12833 invoked from network); 27 May 2005 07:28:22 -0000 X-Scanned-By: AMaViS-ng at latenight.fiasco.org.il Received: from unknown (HELO ?172.16.19.2?) (192.117.105.82) by latenight.fiasco.org.il with SMTP; 27 May 2005 07:28:20 -0000 Message-ID: <4296CC14.6030708@shemesh.biz> Date: Fri, 27 May 2005 10:28:20 +0300 From: Shachar Shemesh Organization: Lingnu Open Source Consulting ltd. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1 X-Accept-Language: en MIME-Version: 1.0 To: "Harris, Richard" Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC Driver exposes tables and views that a user does References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.016 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/52 X-Sequence-Number: 5355 Harris, Richard wrote: >Hi, > >PostgreSQL server 7.4.2 >psqlODBC driver: 7.03.02.00 > >I created a database user in a postgresql cluster. I granted that user >SELECT permission to a few views. I created a DSN for that user to >connect to postgreSQL from a Windows PC. When I use the DSN in MS Access >to link to the views, the Link Tables list includes many tables and >views that the user has no permission to access. Is this a defect in the >ODBC driver? Is there a work around for this? > > As far as security models are concerned, a driver should never impose the security policy. The reason for that is very simple - bypassing the driver will give you access to things you thought were secure. A driver should give the user the maximal power available to her. If Postgresql allows a user to get a list of views that the user has no permission to access, then it's the driver's job to give this list. If you think this security consideration is wrong, the place to complain about that is pgsql-hackers or pgsql-users. There is nothing ODBC can do about this. >Thanks, >Rich Harris > > Shachar -- Shachar Shemesh Lingnu Open Source Consulting ltd. Have you backed up today's work? http://www.lingnu.com/backup.html