Re: [SELinux] How to configure it in RHEL 7?

From: Christian Castelli <voodoo81people(at)gmail(dot)com>
To: Michael H <michael(at)wemoto(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [SELinux] How to configure it in RHEL 7?
Date: 2016-06-14 10:03:12
Message-ID: CAN7CK_zr4CzP1AJGt8xJ3be678YgRVzBxMGaxJ0Z89FFp-jd9w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

My SELinux atributes are the same (all on), but systemctl still fails at
starting PG. Would you share your permissions and SELinux context
attributes on bin folder and it's files?
Mine are: root root system_u:object_r:postgresql_exec_t:s0 for PG bin
folder and all its files.

2016-06-14 11:24 GMT+02:00 Michael H <michael(at)wemoto(dot)com>:

> On 14/06/16 10:11, Christian Castelli wrote:
> > Hi,
> > I've installed PG9.5 on a virtual machine with Red Hat Enterprise 7.
> > After having initialized the PGDATA folder (stadard path), when I start
> > the service with systemctl SELinux denies the execution of the script
> > for checking the DB data folder.
> > It's all summarized on StackExchange
> > <
> http://unix.stackexchange.com/questions/289425/failed-to-start-postgresql-9-5-with-systemctl-selinux
> >.
> > I'm sure it's a SELinux problem because putting PG in permissive mode
> > solves the issue.
> > Any ideas?
> > thanks in advance.
> >
> > --
> > /Christian Castelli
> > skype: christrack/
>
> Hi Christian,
>
> We host our database on CentOS 7, these are the only three sebool that
> are set to on mentioning postgresql
>
> postgresql_selinux_unconfined_dbadm --> on
> postgresql_selinux_users_ddl --> on
> selinuxuser_postgresql_connect_enabled --> on
>
> I don't recall having to change anything during the initial install to
> get it working though.
>
> run
>
> getsebool -a | grep postgresql
>
> to compare.
>
> Michael
>

--

*Christian Castelliskype: christrack*

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Christian Castelli 2016-06-14 12:20:50 Re: [SELinux] How to configure it in RHEL 7?
Previous Message Christian Castelli 2016-06-14 09:11:02 [SELinux] How to configure it in RHEL 7?