pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Vinicius <cviniciusm@terra.com.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: Having problem with postgresql configuration (template1 doesn't
Date: Mon, 21 Feb 2005 11:15:05 -0500
Message-ID: <320.1109002505@sss.pgh.pa.us> (raw)
In-Reply-To: <cvckgh$flm$1@sea.gmane.org>
References: <cva248$c68$1@sea.gmane.org>
	<15094.1108921716@sss.pgh.pa.us>
	<cvamr2$3s6$1@sea.gmane.org>
	<15926.1108930090@sss.pgh.pa.us>
	<cvckgh$flm$1@sea.gmane.org>

Vinicius <cviniciusm@terra.com.br> writes:
> /var/log/messages shows:
> "...
> Feb 21 09:10:43 ronin kernel: audit(1108987843.094:0): avc:  denied  { 
> read } for  pid=6766 exe=/usr/bin/postgres path=/tmp/sh-thd-1108997049 
> (deleted) dev=dm-0 ino=1046660 scontext=user_u:system_r:postgresql_t 
> tcontext=user_u:object_r:tmp_t tclass=file

> And I still don't get the template1 database.

Sigh.  I coulda sworn I tested this in December, but it's definitely
busted now:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=149237
(I might have messed up by only testing PG 8.0 --- 8.0 does not have
this problem, since initdb is no longer a shell script.)

The short-term workaround is to temporarily disable selinux
(sudo /usr/sbin/setenforce 0) while you initialize the database.

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <320.1109002505@sss.pgh.pa.us>
Permalink:  ../320.1109002505@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/320.1109002505@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, cviniciusm@terra.com.br
  Subject: Re: Having problem with postgresql configuration (template1 doesn't
  In-Reply-To: <320.1109002505@sss.pgh.pa.us>
  References: <cva248$c68$1@sea.gmane.org> <15094.1108921716@sss.pgh.pa.us> <cvamr2$3s6$1@sea.gmane.org> <15926.1108930090@sss.pgh.pa.us> <cvckgh$flm$1@sea.gmane.org> <320.1109002505@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox