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

From Bruce Momjian
Subject Re: BUG #5275: validate_exec in port/exec.c only reads u/g/o, not ACLs
Date
Msg-id 201001140437.o0E4bUr10647@momjian.us
Whole thread Raw
In response to Re: BUG #5275: validate_exec in port/exec.c only reads u/g/o, not ACLs  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #5275: validate_exec in port/exec.c only reads u/g/o, not ACLs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.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 ...

Yea, I am not saying the text is right, but rather why it was not
considered for use in that case.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #5275: validate_exec in port/exec.c only reads u/g/o, not ACLs
Next
From: Tom Lane
Date:
Subject: Re: BUG #5275: validate_exec in port/exec.c only reads u/g/o, not ACLs