Re: Disable executing external commands from psql?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Disable executing external commands from psql?
Дата
Msg-id 201006020023.o520Nwa19066@momjian.us
обсуждение исходный текст
Ответ на Re: Disable executing external commands from psql?  (Ken Tanzer <ken.tanzer@gmail.com>)
Список pgsql-general
Ken Tanzer wrote:
> >
> > Sure use SHELL=/usr/bin/false:
> >
> >     $ SHELL=/usr/bin/false psql
> >     psql (9.0beta1)
> >     Type "help" for help.
> >
> >     postgres=>  \!
> >     postgres=>
> >
> >
>
> Trouble is, that doesn't stop
>
> \! bash

Ah, I see.  libc hardcodes the SHELL executable into the system()
library call.

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

  + None of us is going to be here forever. +

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: PosttgreSQL on AIX
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Disable executing external commands from psql?