Hi,
On 03/19/2013 03:30 PM, Brandon Groves wrote:
> When Exec ["postgres init"] is ran, /var/log/messages on the the puppet
> agent has several lines printed similar to the following:
> kernel: type=1400 audit(1363697390.681:566): avc: denied { read write
> } for pid=14834 comm="postgres"
> path="/tmp/puppet20130319-14620-1wpyixh-0" dev=dm-0 ino=1702615
> scontext=unconf
> ined_u:system_r:postgresql_t:s0
> tcontext=unconfined_u:object_r:initrc_tmp_t:s0 tclass=file
>
> Basically, the messages are complaining that user postgres, via the
> execution of initdb PostrgreSQL command, cannot write files to data, the
> destined PGDATA directory, which has proper permissions as shown above
> by the ls -ald data.
It really doesn't. What's complaining (as Peter has already advised), is
the SELinux component.
Try ls --context. Perhaps even your policies need tweaking.
HTH,
Felix
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.