Re: Function to kill backend

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Function to kill backend
Дата
Msg-id 200404030411.i334BCr17966@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Function to kill backend  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Function to kill backend  (Jan Wieck <JanWieck@Yahoo.com>)
Список pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Seems like useful functionality.  Right now, how does an administrator
> > kill another backend from psql?  They can't.
> 
> The question to ask is "should they be able to?"
> 
> I think any such facility is inherently a security risk, since it means
> that a remote attacker who's managed to break into your superuser
> account can randomly zap other backends.  Now admittedly there's plenty
> of other mischief he can do with superuser privs, but that doesn't mean
> we should hand him a pre-loaded, pre-sighted cannon.
> 
> Having to log into the database server locally to execute such
> operations doesn't seem that bad to me.

If they can read/write your data (as superuser), killing backends is the
least worry.

I can see it as useful as part of pg_stat_activity output.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problems Vacuum'ing
Следующее
От: Joe Conway
Дата:
Сообщение: Re: Better support for whole-row operations and composite