Re: minor feature request: Secure defaults during

Поиск
Список
Период
Сортировка
От Markus Schaber
Тема Re: minor feature request: Secure defaults during
Дата
Msg-id 45111118.5090305@logix-tt.com
обсуждение исходный текст
Ответ на Re: minor feature request: Secure defaults during  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: minor feature request: Secure defaults during  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
Hi, Martijn,

Martijn van Oosterhout wrote:

> Someone writing SECURITY DEFINER in their function definition has to be
> understood to know what they're doing. After all, "chmod +s" doesn't
> reset global execute permissions either, because that would be far too
> confusing. The same applies here IMHO. The whole point is to be
> executed by other users.

But I have the possibility to "chmod a-x" before "chmod +s" the file.

Maybe we should add "[NOT] PUBLICLY EXCUTABLE"[1] keywords to CREATE
FUNCTION, with the default being the current behaviour for now (possibly
configurable). Add an appropriate note in the docs for CREATE FUNCTION,
so users are informed about the security implications.


[1] alternative spelling proposals: "[NOT] PUBLIC" or "PUBLIC | PRIVATE"
Thinking about it, "CREATE [OR REPLACE] [PUBLIC|PRIVATE] FUNCTION ..."
seems the "most sexy" variant in my eyes.


HTH,
Markus

--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jeremy Drake
Дата:
Сообщение: Re: [PATCHES] Patch for UUID datatype (beta)
Следующее
От: Markus Schaber
Дата:
Сообщение: Re: Truncation of email subject lines