pgsql: Prevent pg_ctl from being run as root.

Поиск
Список
Период
Сортировка
От tgl@svr1.postgresql.org (Tom Lane)
Тема pgsql: Prevent pg_ctl from being run as root.
Дата
Msg-id 20041022002427.C14D532A353@svr1.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Prevent pg_ctl from being run as root.  Since it uses configuration files
owned by postgres, doing "pg_ctl start" as root could allow a privilege
escalation attack, as pointed out by iDEFENSE.  Of course the postmaster would
fail, but we ought to fail a little sooner to protect sysadmins unfamiliar
with Postgres.  The chosen fix is to disable root use of pg_ctl in all cases,
just to be confident there are no other holes.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/bin/pg_ctl:
        pg_ctl.sh (r1.36.4.1 -> r1.36.4.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_ctl/pg_ctl.sh.diff?r1=1.36.4.1&r2=1.36.4.2)

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

Предыдущее
От: tgl@svr1.postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Update obsolete comments about COPY vs INSERT options, per Uwe
Следующее
От: tgl@svr1.postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Prevent pg_ctl from being run as root.