Page 1 of 1

Selinux DB Connection

Posted: Sat Nov 16, 2019 11:21 am
by nth0mth0m
For the most part I have everything installed just fine; however in order to keep the postgres DB connection alive I have to keep SeLinux disabled. As soon as I reenable it the connection to postgres is lost and timetrex is "down for maintenance"

How can I reenable SeLinux without loosing DB connection?

Re: Selinux DB Connection

Posted: Sat Nov 16, 2019 4:01 pm
by mikeb
What Linux distro/version are you using?

Re: Selinux DB Connection

Posted: Sat Nov 16, 2019 6:57 pm
by nth0mth0m
Centos 8 and timetrex community, I just downloaded it a few days ago through the timetrex website so it the most current version, whatever that is. I followed the instructions to temp disable using setenforce 0 but cannot setenforce 1 without losing connection.

Re: Selinux DB Connection

Posted: Mon Nov 18, 2019 10:41 am
by mikeb
We are just in the process of finalizing official instructions for installing TimeTrex on CentOS v8, they should be completed soon.

Re: Selinux DB Connection

Posted: Tue Nov 19, 2019 12:32 pm
by nth0mth0m
Thank you. Please let me know when they become available. I’m assuming this has to do with the security context of postgresql but I’m not to familiar with SELinux

Re: Selinux DB Connection

Posted: Sat Nov 23, 2019 10:59 am
by nth0mth0m
I did a little research on the topic. I was able to allow apache access to postgresql by:

setsebool -P httpd_can_network_connect_db 1