Re: Install pgadmin4 on Fedora 30

From: Devrim Gündüz <devrim(at)gunduz(dot)org>
To: Michael Monerau <michael(dot)monerau(at)gmail(dot)com>
Cc: pgadmin-support(at)lists(dot)postgresql(dot)org
Subject: Re: Install pgadmin4 on Fedora 30
Date: 2019-05-24 09:29:52
Message-ID: a0d3600e1da97182e9f59abb7a29d924fcfb7de0.camel@gunduz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support


Hi,

On Thu, 2019-05-23 at 20:35 +0200, Michael Monerau wrote:
>
>
> It had to do with SELinux, which was blocking the access to the files
> because they are not decorated with the proper types. Based on the results
> from `/var/log/audit/audit.log` and the actual types of /var/lib/httpd and
> /var/log/httpd, I did the following, which could be useful to incorporate
> in the install script (or put in a README somewhere?):
>
> ```
> sudo setsebool -P httpd_can_network_connect 1
> sudo setsebool -P httpd_can_network_connect_db 1
> sudo semanage fcontext -a -t httpd_var_lib_t '/var/lib/pgadmin(/.*)?'
> sudo restorecon -R -v /var/lib/pgadmin
> sudo semanage fcontext -a -t httpd_log_t '/var/log/pgadmin(/.*)?'
> sudo restorecon -R -v /var/log/pgadmin
> ``

How does this look?

https://git.postgresql.org/gitweb/?p=pgrpms.git;a=commitdiff;h=35bdf10258109b1f0e04d576a605d6b9cc7cdb1a

Regards,
--
Devrim Gündüz
Open Source Solution Architect, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Michael Monerau 2019-05-24 09:43:17 Re: Install pgadmin4 on Fedora 30
Previous Message Dave Page 2019-05-24 09:24:09 Re: Why fields are not editable in pgAdmin?