pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedsepgsql installation troubles in Postgresql 9.1 alpha4
2+ messages / 2 participants
[nested] [flat]
* sepgsql installation troubles in Postgresql 9.1 alpha4
@ 2011-03-28 10:10 H S <aras_h1988@yahoo.com>
0 siblings, 1 reply; 2+ messages in thread
From: H S @ 2011-03-28 10:10 UTC (permalink / raw)
To: pgsql-admin
Dear Sirs,
I
have just read your manual about implementing module sepgsql on
Postgresql. But I do not have any idea that where and how I sould insert
the below commands, that you've mentioned in manual.
>In terminal?
> When I type initdb, normally it requires at least an option to be followed; but here it has been typed "initdb".
> And also about $PGDATA: Should I type my path instead $PGDATA?
> And by the way the for command until end of done. Should I insert/type it in my linux(fedora 14) terminal?
Regards,
Sara
===================================================================================================================================================
(MANUAL)
The following instructions that assume your installation is under the
/usr/local/pgsql directory. Adjust the paths shown below as appropriate
for your installaton.
$ initdb
$ vi $PGDATA/postgresql.conf
$ for DBNAME in template0 template1 postgres; do
postgres --single -F -O -c exit_on_error=true $DBNAME \
< /usr/local/pgsql/share/contrib/sepgsql.sql > /dev/null
done
------------------------------------------
---my commands in terminal:
[postgres@localhost
bin]$ for DBNAME in test; do ./postgres --single -D
/usr/local/pgsql/data -F -O -c exit_on_error=true $DBNAME <
/usr/local/pgsql/share/
contrib/sepgsql.sql > /dev/null; done
-------------------------------------------
----result:
FATAL: SELinux: failed to initialize labeling handle: No such file or directory
STATEMENT: SELECT sepgsql_restorecon(NULL);
-------------------------------------------
*My System has the selinux-policy version is selinux-policy-3.9.7-37.fc14.
I would like to know whether the versions 3.9.13 in fedora15 and 3.9.7-37 for fedora 14 is equivalent or not.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: sepgsql installation troubles in Postgresql 9.1 alpha4
@ 2011-09-21 13:24 Vinicius Abrahao <vinnix.bsd@gmail.com>
parent: H S <aras_h1988@yahoo.com>
0 siblings, 0 replies; 2+ messages in thread
From: Vinicius Abrahao @ 2011-09-21 13:24 UTC (permalink / raw)
To: H S <aras_h1988@yahoo.com>; +Cc: pgsql-admin
On Mon, Mar 28, 2011 at 7:10 AM, H S <aras_h1988@yahoo.com> wrote:
> Dear Sirs,
>
> I have just read your manual about implementing module sepgsql on
> Postgresql. But I do not have any idea that where and how I sould insert the
> below commands, that you've mentioned in manual.
>
> >In terminal?
> > When I type initdb, normally it requires at least an option to be
> followed; but here it has been typed "initdb".
> > And also about $PGDATA: Should I type my path instead $PGDATA?
> > And by the way the for command until end of done. Should I insert/type it
> in my linux(fedora 14) terminal?
>
> Regards,
>
> Sara
>
> ==============================**==============================**
> ==============================**==============================**
> ===========================
> (MANUAL) The following instructions that assume your installation is under
> the /usr/local/pgsql directory. Adjust the paths shown below as appropriate
> for your installaton.
>
> $ initdb
> $ vi $PGDATA/postgresql.conf
> $ for DBNAME in template0 template1 postgres; do
> postgres --single -F -O -c exit_on_error=true $DBNAME \
> < /usr/local/pgsql/share/**contrib/sepgsql.sql > /dev/null
> done
> ------------------------------**------------
> ---my commands in terminal:
>
> [postgres@localhost bin]$ for DBNAME in test; do ./postgres --single -D
> /usr/local/pgsql/data -F -O -c exit_on_error=true $DBNAME <
> /usr/local/pgsql/share/
> contrib/sepgsql.sql > /dev/null; done
> ------------------------------**-------------
> ----result:
>
> FATAL: SELinux: failed to initialize labeling handle: No such file or
> directory
> STATEMENT: SELECT sepgsql_restorecon(NULL);
> ------------------------------**-------------
>
> *My System has the selinux-policy version is selinux-policy-3.9.7-37.fc14.
> I would like to know whether the versions 3.9.13 in fedora15 and 3.9.7-37
> for fedora 14 is equivalent or not.
>
>
>
>
Dear Sara, dear All,
I am expecting the same problem here...
Digging a little bit more into the code I saw what is the line that is
failling, at label.c line 528.
sehnd = selabel_open(SELABEL_CTX_DB, &seopts, 1);
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-09-21 13:24 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-03-28 10:10 sepgsql installation troubles in Postgresql 9.1 alpha4 H S <aras_h1988@yahoo.com>
2011-09-21 13:24 ` Vinicius Abrahao <vinnix.bsd@gmail.com>
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