Re: Having problem with postgresql configuration (template1 doesn't

From: Vinicius <cviniciusm(at)terra(dot)com(dot)br>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Having problem with postgresql configuration (template1 doesn't
Date: 2005-02-21 12:51:52
Message-ID: cvclaq$hto$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Vinicius escreveu:
> Tom Lane escreveu:
>
>> Vinicius <cviniciusm(at)terra(dot)com(dot)br> writes:
>>
>>> I tryed to create another data dir because I don't have the template1
>>> database.
>>
>>
>>
>> I think you got bit by one of the early-FC3 selinux policy bugs; see
>> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=142607
>> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=143208
>>
>> You probably want to rm -rf /var/lib/pgsql/data/ and try again
>> after making sure (a) you have the latest postgres and selinux
>> packages and (b) you've done restorecon on /var/lib/pgsql and
>> /var/log/pgsql.
>>
>> regards, tom lane
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 7: don't forget to increase your free space map settings
>>
>
> I did do "rm -fr /var/lib/pgsql/data/"
> (a) I have the lastest *stable postgres package* from Fedora Core 3;
> (b) I did do restorecon on "/var/lib/pgsql" and on "/var/log/pgsql".
>
> now it pass the "...creating template1 database in
> /var/lib/pgsql/data/base/1... ok" but stop at
> "...
> initializing pg_shadow... ok
> enabling unlimited row size for system tables... ok
> initializing pg_depend... ok
> creating system views... ok
> loading pg_description... ok
> creating conversions... ok
> setting privileges on built-in objects... ok
> *creating information schema...*
> initdb: failed"
>
> /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
> Feb 21 09:10:43 ronin kernel: audit(1108987843.423:0): avc: denied {
> read } for pid=6767 exe=/usr/bin/postgres path=/tmp/sh-thd-1108980215
> (deleted) dev=dm-0 ino=1046660 scontext=user_u:system_r:postgresql_t
> tcontext=user_u:object_r:tmp_t tclass=file
> Feb 21 09:10:43 ronin kernel: audit(1108987843.480:0): avc: denied {
> read } for pid=6768 exe=/usr/bin/postgres path=/tmp/sh-thd-1109000142
> (deleted) dev=dm-0 ino=1046660 scontext=user_u:system_r:postgresql_t
> tcontext=user_u:object_r:tmp_t tclass=file
> Feb 21 09:10:43 ronin kernel: audit(1108987843.542:0): avc: denied {
> read } for pid=6769 exe=/usr/bin/postgres path=/tmp/sh-thd-1108983044
> (deleted) dev=dm-0 ino=1046660 scontext=user_u:system_r:postgresql_t
> tcontext=user_u:object_r:tmp_t tclass=file"
>
> I think "/usr/bin/postgres" was tried to write to a file in "/tmp" and
> was denied.
>
> And I still don't get the template1 database.
>
> Thanks.

I think it tried to read instead to write.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Vinicius 2005-02-21 12:59:33 Re: Having problem with postgresql configuration (template1 doesn't
Previous Message Vinicius 2005-02-21 12:37:51 Re: Having problem with postgresql configuration (template1 doesn't