| From: | Nate <natetg(at)gmail(dot)com> |
|---|---|
| To: | pgsql-pkg-yum(at)postgresql(dot)org |
| Subject: | Postgres 9.3 and SELinux |
| Date: | 2014-06-18 13:18:11 |
| Message-ID: | CAB7zrFy5fg1bR+cjv+hiay4T69ev27XJcaEk84fVCqmgRSu5TQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-pkg-yum |
I'm hope this is the right place to report. I had to make some changes
to the file contexts in order to make Postgres 9.3 work in my
environment (64-bit CentOS 6.5, SELinux)
Below is the pertinent output of semanage -o -:
fcontext -a -f 'all files' -t postgresql_initrc_exec_t
'/etc/rc\.d/init\.d/postgresql-9.3'
fcontext -a -f 'all files' -t postgresql_exec_t '/usr/pgsql-9.3/bin/postgres'
fcontext -a -f 'all files' -t postgresql_db_t '/var/lib/pgsql/9.3/data(/.*)?'
fcontext -a -f 'all files' -t postgresql_log_t
'/var/lib/pgsql/9.3/pgstartup\.log.*'
My understanding of SELinux is rudimentary, so I may have missed some
necessary rules, but these are the minimum that made it work in my
environment. I believe this stems from the YUM packages not installing
Postgres in the locations CentOS expects?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Devrim Gündüz | 2014-06-18 13:38:51 | Re: Libevent conflict on EL-6? |
| Previous Message | Craig Ringer | 2014-06-18 12:51:06 | Re: Moving to git |