![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I've been wresting with this problem since 8.0.1 and am able to duplicate it on 6 different installations. If I compile postgres from source, everything works fine. If I install the RHEL 4 ES RPM, pg_dump silently fails. |
#2
| |||
| |||
|
|
Brandon Keepers <brandon (AT) opensoul (DOT) org> writes: I've been wresting with this problem since 8.0.1 and am able to duplicate it on 6 different installations. If I compile postgres from source, everything works fine. If I install the RHEL 4 ES RPM, pg_dump silently fails. Is SELinux in enforcement mode, and if so does turning it off change things? |
#3
| |||
| |||
|
|
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? |
#4
| |||
| |||
|
|
Is SELinux in enforcement mode, and if so does turning it off change things? |
#5
| |||
| |||
|
|
Bruce Momjian <pgman (AT) candle (DOT) 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.) |
#6
| |||
| |||
|
|
Tom Lane wrote: 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. Throw a message to stderr saying something about SELinux. |
#7
| |||
| |||
|
|
Yup, that was it. If you disable SELinux, everything works. I tried just commenting out line 732 in /etc/selinux/targeted/contexts/files/file_contexts and that didn't work. Anyone know how to correct this? |
#8
| |||
| |||
|
|
Tom Lane wrote: Brandon Keepers <brandon (AT) opensoul (DOT) org> writes: I've been wresting with this problem since 8.0.1 and am able to duplicate it on 6 different installations. If I compile postgres from source, everything works fine. If I install the RHEL 4 ES RPM, pg_dump silently fails. 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? |

![]() |
| Thread Tools | |
| Display Modes | |
| |