Re: [CentOS] postgresql copy to and selinux

2010-07-25 Thread Gordon Messmer
On 07/23/2010 01:50 PM, Marcelo Roccasalva wrote: Anyway, what are the best practices to allow postgresql copy to a subdirectory of a home directory (without disabling selinux)? I'm running centos 5.5. The first thing you'll want to do is enable auditing. One of the items in Fedora's SELinux

[CentOS] postgresql copy to and selinux

2010-07-23 Thread Marcelo Roccasalva
I need to run a copy table to '/home/user/dir/copy.txt'; but I get permission denied. Filesystem dir modes are ok and I get no event logged in audit.log, but if I setenforce 0, I can do the copy. This explains auditd silence: # sesearch --audit |egrep postgres.*home dontaudit postgresql_t