Re: refusing connections based on load ...

Поиск
Список
Период
Сортировка
От The Hermit Hacker
Тема Re: refusing connections based on load ...
Дата
Msg-id Pine.BSF.4.33.0104240122060.4451-100000@mobile.hub.org
обсуждение исходный текст
Ответ на Re: refusing connections based on load ...  (Ian Lance Taylor <ian@airs.com>)
Список pgsql-hackers
On 23 Apr 2001, Ian Lance Taylor wrote:

> Tom Lane <tgl@sss.pgh.pa.us> writes:
>
> > On Linux and BSD it seems to be more common to put /dev/kmem into a
> > specialized group "kmem", so running postgres as setgid kmem is not so
> > immediately dangerous.  Still, do you think it's a good idea to let an
> > attacker have open-ended rights to read your kernel memory?  It wouldn't
> > take too much effort to sniff passwords, for example.
>
> On Linux you can get the load average by doing `cat /proc/loadavg'.
> On NetBSD you can get the load average via a sysctl.  On those systems
> and others the uptime program is neither setuid nor setgid.

Good call ... FreeBSD has it also, and needs no special privileges ...
just checked, and the sysctl command isn't setuid/setgid anything, so I'm
guessing that using sysctl() to pull these values shouldn't create any
security issues on those systems that support it ?




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

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: refusing connections based on load ...
Следующее
От: Lincoln Yeoh
Дата:
Сообщение: Re: refusing connections based on load ...