pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #15081: pg_hba_file_rules permission issue
3+ messages / 3 participants
[nested] [flat]
* BUG #15081: pg_hba_file_rules permission issue
@ 2018-02-23 15:06 PG Bug reporting form <noreply@postgresql.org>
2018-02-23 15:13 ` Re: BUG #15081: pg_hba_file_rules permission issue David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: PG Bug reporting form @ 2018-02-23 15:06 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: jobyjc@gmail.com
The following bug has been logged on the website:
Bug reference: 15081
Logged by: Joby John
Email address: jobyjc@gmail.com
PostgreSQL version: 10.2
Operating system: Windows 10
Description:
Hi,
To get access to pg_hba_file_rules view, user needs execute privilege on
pg_hba_file_rules() function too.
But I think this is not the normal behaviour as I can give access to
pg_shadow view without granting access to pg_authid table even though
pg_authid is used inside pg_shadow.
Kind Regards,
Joby
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #15081: pg_hba_file_rules permission issue
2018-02-23 15:06 BUG #15081: pg_hba_file_rules permission issue PG Bug reporting form <noreply@postgresql.org>
@ 2018-02-23 15:13 ` David G. Johnston <david.g.johnston@gmail.com>
2018-02-23 15:14 ` Re: BUG #15081: pg_hba_file_rules permission issue Joby John <jobyjc@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: David G. Johnston @ 2018-02-23 15:13 UTC (permalink / raw)
To: jobyjc@gmail.com; pgsql-bugs@lists.postgresql.org
On Fri, Feb 23, 2018 at 8:06 AM, PG Bug reporting form <
noreply@postgresql.org> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 15081
> Logged by: Joby John
> Email address: jobyjc@gmail.com
> PostgreSQL version: 10.2
> Operating system: Windows 10
> Description:
>
> Hi,
> To get access to pg_hba_file_rules view, user needs execute privilege on
> pg_hba_file_rules() function too.
>
> But I think this is not the normal behaviour as I can give access to
> pg_shadow view without granting access to pg_authid table even though
> pg_authid is used inside pg_shadow.
>
pg_authid is a table/view while pg_hba_file_rules() is a function. For
better and worse functions always execute as the user running the query
while access to tables and views is done as the owner of the view. being
accessed.
David J.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #15081: pg_hba_file_rules permission issue
2018-02-23 15:06 BUG #15081: pg_hba_file_rules permission issue PG Bug reporting form <noreply@postgresql.org>
2018-02-23 15:13 ` Re: BUG #15081: pg_hba_file_rules permission issue David G. Johnston <david.g.johnston@gmail.com>
@ 2018-02-23 15:14 ` Joby John <jobyjc@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Joby John @ 2018-02-23 15:14 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org
Thank you for your response.
On 23 Feb 2018 3:13 pm, "David G. Johnston" <david.g.johnston@gmail.com>
wrote:
> On Fri, Feb 23, 2018 at 8:06 AM, PG Bug reporting form <
> noreply@postgresql.org> wrote:
>
>> The following bug has been logged on the website:
>>
>> Bug reference: 15081
>> Logged by: Joby John
>> Email address: jobyjc@gmail.com
>> PostgreSQL version: 10.2
>> Operating system: Windows 10
>> Description:
>>
>> Hi,
>> To get access to pg_hba_file_rules view, user needs execute privilege on
>> pg_hba_file_rules() function too.
>>
>> But I think this is not the normal behaviour as I can give access to
>> pg_shadow view without granting access to pg_authid table even though
>> pg_authid is used inside pg_shadow.
>>
>
> pg_authid is a table/view while pg_hba_file_rules() is a function. For
> better and worse functions always execute as the user running the query
> while access to tables and views is done as the owner of the view. being
> accessed.
>
> David J.
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2018-02-23 15:14 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-02-23 15:06 BUG #15081: pg_hba_file_rules permission issue PG Bug reporting form <noreply@postgresql.org>
2018-02-23 15:13 ` David G. Johnston <david.g.johnston@gmail.com>
2018-02-23 15:14 ` Joby John <jobyjc@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox