@@ -96,11 +96,13 @@ Policy from config file: targeted
96
96
97
97
<para>
98
98
The following instructions that assume your installation is under the
99
- <filename>/usr/local/pgsql</> directory. Adjust the paths shown below as
100
- appropriate for your installation.
99
+ <filename>/usr/local/pgsql</> directory and the database cluster is
100
+ under the <filename>/path/to/database</> directory. Adjust the paths
101
+ shown below as appropriate for your installation.
101
102
</para>
102
103
103
104
<screen>
105
+ $ export PGDATA=/path/to/database
104
106
$ initdb
105
107
$ vi $PGDATA/postgresql.conf
106
108
$ for DBNAME in template0 template1 postgres; do
@@ -113,6 +115,16 @@ $ for DBNAME in template0 template1 postgres; do
113
115
If the installation process completes without error, you can now start the
114
116
server normally.
115
117
</para>
118
+
119
+ <para>
120
+ Please note that you may see the following notifications depending on
121
+ the combination of a particular version of <productname>libselinux</>
122
+ and <productname>selinux-policy</>.
123
+ <screen>
124
+ /etc/selinux/targeted/contexts/sepgsql_contexts: line 33 has invalid object type db_blobs
125
+ </screen>
126
+ This message is harmless and may be safely ignored.
127
+ </para>
116
128
</sect2>
117
129
118
130
<sect2 id="sepgsql-regression">
@@ -124,7 +136,15 @@ $ for DBNAME in template0 template1 postgres; do
124
136
</para>
125
137
126
138
<para>
127
- First, build and install the policy package for the regression test.
139
+ First, set up <productname>sepgsql</productname> according to
140
+ the <xref linkend="sepgsql-installation">. The regression test is
141
+ intended to be run on a system with a working SE-Linux implementation.
142
+ The current operating system user must be able to connect to the database
143
+ as superuser without authentication.
144
+ </para>
145
+
146
+ <para>
147
+ Second, build and install the policy package for the regression test.
128
148
The <filename>sepgsql-regtest.pp</> is a special purpose policy package
129
149
which provides a set of rules to be allowed during the regression tests.
130
150
It should be built from the policy source file
@@ -149,7 +169,7 @@ sepgsql-regtest 1.03
149
169
</screen>
150
170
151
171
<para>
152
- Second , turn on <literal>sepgsql_regression_test_mode</>.
172
+ Third , turn on <literal>sepgsql_regression_test_mode</>.
153
173
We don't enable all the rules in the <filename>sepgsql-regtest.pp</>
154
174
by default, for your system's safety.
155
175
The <literal>sepgsql_regression_test_mode</literal> parameter is associated
0 commit comments