X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DE2AD8BB075 for ; Mon, 21 Feb 2005 16:15:09 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 20795-08 for ; Mon, 21 Feb 2005 16:15:08 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 449598BB06B for ; Mon, 21 Feb 2005 16:15:07 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j1LGF5fp000322; Mon, 21 Feb 2005 11:15:06 -0500 (EST) To: Vinicius Cc: pgsql-admin@postgresql.org Subject: Re: Having problem with postgresql configuration (template1 doesn't In-reply-to: References: <15094.1108921716@sss.pgh.pa.us> <15926.1108930090@sss.pgh.pa.us> Comments: In-reply-to Vinicius message dated "Mon, 21 Feb 2005 09:37:51 -0300" Date: Mon, 21 Feb 2005 11:15:05 -0500 Message-ID: <320.1109002505@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/193 X-Sequence-Number: 16361 Vinicius 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