Re: Setuid functions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Setuid functions
Date
Msg-id Pine.LNX.4.30.0106231748290.724-100000@peter.localdomain
Whole thread Raw
In response to Setuid functions  (Mark Volpe <volpe.mark@epamail.epa.gov>)
Responses Re: Setuid functions  (Philip Warner <pjw@rhyme.com.au>)
List pgsql-hackers
Mark Volpe writes:

> I know this topic was discussed a few months ago, but I'm wondering if any
> decisions have been reached on if, how, and when setuid functions and triggers
> might be implemented. If not, I have an idea to throw at it.

Add a boolean column to pg_proc, when that column is true you select a
special function class handler in fmgr_info(), that function handler will
save and restore the user id and then call the real function.  See
backend/utils/fmgr/fmgr.c for the action.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [PATCH] Re: Setuid functions
Next
From: btoback@mac.com
Date:
Subject: JDBC adaptor issue