Re: BUG #5275: validate_exec in port/exec.c only reads u/g/o, not ACLs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: James Bellinger <jfb(at)zer7(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5275: validate_exec in port/exec.c only reads u/g/o, not ACLs
Date: 2010-01-14 04:35:27
Message-ID: 14557.1263443727@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> I think access's reputation as something to avoid caused us not to look
> at it. My old BSD manual says about access():

> CAVEAT
> The access() function should be used rarely, if ever. Specifically,
> access() should never be used by any program whose user real and effec-
> tive IDs, or group real and effective IDs, differ.

But we force those to be the same in main.c. Anyway there are several
other uses of access() in the code ...

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2010-01-14 04:37:30 Re: BUG #5275: validate_exec in port/exec.c only reads u/g/o, not ACLs
Previous Message Bruce Momjian 2010-01-14 04:26:53 Re: BUG #5275: validate_exec in port/exec.c only reads u/g/o, not ACLs