Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Tom Lane wrote:
> >> Is SELinux in enforcement mode, and if so does turning it off change
> >> things?
>
> > Should we check for a buggy SELinux and report a meaningful error
> > message on failure?
>
> How you intend to do that, exactly? The bug is that it won't let you
> write on /dev/tty, which puts a pretty severe crimp on *any* reporting.
>
> (This is not as insane as it sounds: it's a reasonable security
> restriction for a daemon process. The error in older SELinux policy
> files is that they think all the Postgres executables are daemons, not
> only the postmaster.)
Throw a message to stderr saying something about SELinux.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073