SELinux prevents postmaster (postgresql) from read/write several files
Issue
- SELinux prevents postmaster (postgresql) from read/write several files. These messages are reported in logs -
Jun 21 09:15:05 server1 setroubleshoot: SELinux is preventing postmaster (postgresql_t) "read" to ./pg_database (var_t). For complete SELinux messages. run sealert -l 5f3548b0-829c-44bd-83cb-4eba49e0f33c
Jun 21 09:15:05 server1 setroubleshoot: SELinux is preventing postmaster (postgresql_t) "getattr" to /srv/ustisys4/global/pg_database (var_t). For complete SELinux messages. run sealert -l 91c2d25f-a88c-4954-a3ea-f8d7240d7bc6
Jun 21 09:15:05 server1 setroubleshoot: SELinux is preventing postmaster (postgresql_t) "write" to /srv/ustisys4/pg_log/postgresql-2010-06-21_000000.log (var_t). For complete SELinux messages. run sealert -l 6c4f1f71-111d-4fb7-9a04-79ce4e396daa
Jun 21 09:15:06 server1 setroubleshoot: SELinux is preventing postmaster (postgresql_t) "write" to ./global (var_t). For complete SELinux messages. run sealert -l 20f4ce26-e589-489f-9183-8ecbcae3e010
Jun 21 09:15:06 server1 setroubleshoot: SELinux is preventing postmaster (postgresql_t) "remove_name" to ./pgstat.tmp (var_t). For complete SELinux messages. run sealert -l 83c8aea4-10ee-43ad-8c93-1f3531fc4890
Environment
- Red Hat Enterprise Linux 5.5 (SELinux in permissive mode)
- postgresql 8.3.11
- selinux-policy-2.4.6-279.el5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.