Selinux DB Connection

Ask your questions regarding TimeTrex installation here.
Post Reply
nth0mth0m
Posts: 27
Joined: Fri Nov 15, 2019 9:39 pm

Selinux DB Connection

Post 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?

mikeb
Posts: 609
Joined: Thu Jul 27, 2006 11:58 am

Re: Selinux DB Connection

Post by mikeb »

What Linux distro/version are you using?
TimeTrex Community Edition is developed and supported by volunteers.
Help motivate us to continue by showing your appreciation!

nth0mth0m
Posts: 27
Joined: Fri Nov 15, 2019 9:39 pm

Re: Selinux DB Connection

Post 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.

mikeb
Posts: 609
Joined: Thu Jul 27, 2006 11:58 am

Re: Selinux DB Connection

Post by mikeb »

We are just in the process of finalizing official instructions for installing TimeTrex on CentOS v8, they should be completed soon.
TimeTrex Community Edition is developed and supported by volunteers.
Help motivate us to continue by showing your appreciation!

nth0mth0m
Posts: 27
Joined: Fri Nov 15, 2019 9:39 pm

Re: Selinux DB Connection

Post 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

nth0mth0m
Posts: 27
Joined: Fri Nov 15, 2019 9:39 pm

Re: Selinux DB Connection

Post 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

Post Reply