Re: Parsing errors in pg_hba.conf

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Parsing errors in pg_hba.conf
Дата
Msg-id 20081027121933.GA3866@alvh.no-ip.org
обсуждение исходный текст
Ответ на Parsing errors in pg_hba.conf  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Parsing errors in pg_hba.conf  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
Magnus Hagander wrote:
> In a number of places in pg_hba.conf, we don't actually log what goes
> wrong - instead we just goto a label that will log "invalid token \"%s\"".
> 
> Is there any special reason for this, other than the fact that it was
> the easy way out? I think it would be reasonable to for example log
> "hostssl not supported on this platform" instead of that, when USE_SSL
> is not defined, etc.

Without actually looking at what you're considering, I think it could be
a security bug if you were to disclose all the details to the user.
Perhaps the details can be passed to errdetail_log() to avoid this
problem.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: new correlation metric
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Parsing errors in pg_hba.conf