From: | elein <elein(at)varlena(dot)com> |
---|---|
To: | Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>, pgsql-general(at)postgresql(dot)org |
Cc: | elein(at)varlena(dot)com |
Subject: | Re: PlPython |
Date: | 2003-06-27 22:06:38 |
Message-ID: | 200306271506.38598.elein@varlena.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Perhaps this should be asked on the interfaces list, but...
Exactly what functions are prohibited (or acceptable)
for a pl language in PostgreSQL to become trusted?
Is the exact criteria list documented somewhere?
Since C is wide open, why is it considered trusted,
or is it? Or are some C calls disallowed by the
function manager (this was what we did at informix,
we also enforced permissions carefully (after showing
how easy it was to break things :-) ).
My guess of the list would be:
1. No or a restricted set of OS calls
(what would be the restricted set?
The set Keith removed?)
2. No file system operations or strongly
enforced permissions on file system operations.
Elein
On Thursday 26 June 2003 11:48, Karsten Hilbert wrote:
> >>Now that the rexec code is gone, it MUST be marked untrusted --- this is
> >>not a question for debate. Installing it as trusted would be a security
> >>hole.
> >
> > That means that there is something else untrusted in PLPython,
> > what is this?
> Well, basically everything else.
>
> You are getting this backwards. Making Python a *trusted*
> language *requires* something like rexec. Since we don't have
> rexec anymore (it never was much good, apparently) we cannot
> make Python trusted. Hence we must make it untrusted to keep
> it in at all.
>
> The point here is not whether we trust the rest of Python but
> whether we have something (like rexec) that restricts the
> standard Python. Only if we have that do we define a language
> as "trusted".
>
> Things would be different, of course, if an entire language
> was restricted by nature. That would be a candidate for a
> trusted language without needing specific add-on execution
> restriction.
>
> Karsten
> --
> GPG key ID E4071346 @ wwwkeys.pgp.net
> E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
>
--
=============================================================
elein(at)varlena(dot)com Database Consulting www.varlena.com
PostgreSQL General Bits http:/www.varlena.com/GeneralBits/
"Free your mind the rest will follow" -- en vogue
From | Date | Subject | |
---|---|---|---|
Next Message | Austin Gonyou | 2003-06-27 22:07:53 | Re: Tablespaces (was Re: [GENERAL] Physical Database |
Previous Message | Erik Price | 2003-06-27 19:59:35 | Re: dropping sequences |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2003-06-27 22:07:10 | Re: Missing array support |
Previous Message | Joe Conway | 2003-06-27 22:03:53 | Re: Missing array support |