Hi<br>
<br>
I have a FC4 box (all updates applied) on which I have a Postgresql
server (standard fedora rpms) and I'm running targeted selinux policy.<br>
The problem is that I cannot move the data directory away from /var/lib/pgsql/data with out turning selinux off.<br>
<br>
Is there any HOWTOs out there that would be helpful?<br>
<br>
I've tried using chcon so that the permission would be identical between the new and the old <br>
<br>
[root@zeus ~]# ls -ldZ /var/lib/pgsql/data/<br>
drwx------  postgres postgres system_u:object_r:postgresql_db_t /var/lib/pgsql/data/<br>
[root@zeus ~]# ls -lZd /mnt/raid/db/pgsql/data/<br>
drwx------  postgres postgres system_u:object_r:postgresql_db_t /mnt/raid/db/pgsql/data/<br>
<br>
But I still get permission denied when I try to start postgresql !! If
I mark the "Disable SELinux protection for Postgresql daemon" in the
SELinux GUI, then it starts up fine.<br>
But what would be the correct way to handle this? <br>
<br>
/markus<br>
<br>