SELinux strangeness with 8.1.2 and 8.1.3 - Mailing list pgsql-general

From Just Someone
Subject SELinux strangeness with 8.1.2 and 8.1.3
Date
Msg-id 36932f270603011144r7976dfc1u994b36d3e3ba2029@mail.gmail.com
Whole thread Raw
Responses Re: SELinux strangeness with 8.1.2 and 8.1.3
List 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!

pgsql-general by date:

Previous
From: Tony Caduto
Date:
Subject: Special offer with a possible dontation to the project
Next
From: "Dave Page"
Date:
Subject: Re: Special offer with a possible dontation to the project