summaryrefslogtreecommitdiff
path: root/src/tutorial/beard.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-10-22 00:24:33 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-10-22 00:24:33 +0000
commit0b83c1f272165716d9c30911fbeab5dddca3ab18 (patch)
tree2024c524fa84b07e763167a39869efa2fc9c4268 /src/tutorial/beard.c
parentd9c1e5e1c253996aa9d8d020515b6fbaeaa4dc27 (diff)
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.
Diffstat (limited to 'src/tutorial/beard.c')
0 files changed, 0 insertions, 0 deletions