SELinux strangeness with 8.1.2 and 8.1.3

From: "Just Someone" <just(dot)some(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: SELinux strangeness with 8.1.2 and 8.1.3
Date: 2006-03-01 19:44:31
Message-ID: 36932f270603011144r7976dfc1u994b36d3e3ba2029@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I know this isn't directly a postgres issue, but it might help a few
other users, so here goes.

I did an upgrade on my Fedora Core 4 system, and postgres (8.1.2 from
the postgres packages, not FC packages) stopped working because of
permission issues when trying to create postmaster.pid in the
/var/lib/pgsql/data directory. My system has SELinux active, and it
used to work until now.

So I upgraded using the latest 8.1.3 release (I built it from SRPMs as
an x86_64 binary wasn't available), hoping it will help. It didn't.

I researched it a bit, and tried a few things, and discovered that the
problem is in the init script at /etc/init.d/postgres users runuser
instead of su on SELinux enabled systems. But for some reason it won't
work this way. I manually reveted it to use su and it works fine.

It anyone knows of a better fix - please let me know.

Thanks,

Guy.

---
Family management on postgres+rails: http://www.famundo.com - coming soon!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dave Page 2006-03-01 19:47:52 Re: Special offer with a possible dontation to the project
Previous Message Tony Caduto 2006-03-01 19:44:29 Special offer with a possible dontation to the project