10000 docs: Document --with-selinux/-Dselinux options centrally · postgres/postgres@06c7084 · GitHub
[go: up one dir, main page]

Skip to content

Commit 06c7084

Browse files
committed
docs: Document --with-selinux/-Dselinux options centrally
Previously --with-selinux was documented only in the in the sepgsql documentation and there was no corresponding documentation for meson. There are further improvements that could be made, but this change seems worthwhile even on its own. Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Reported-by: Christoph Berg <myon@debian.org> Discussion: https://postgr.es/m/20231103163848.26egkh5qdgw3vmil@awork3.anarazel.de
1 parent c04f3de commit 06c7084

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

doc/src/sgml/installation.sgml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,16 @@ build-postgresql:
11981198
</listitem>
11991199
</varlistentry>
12001200

1201+
<varlistentry id="configure-option-with-sepgsql">
1202+
<term><option>--with-selinux</option></term>
1203+
<listitem>
1204+
<para>
1205+
Build with SElinux support, enabling the <xref linkend="sepgsql"/>
1206+
extension.
1207+
</para>
1208+
</listitem>
1209+
</varlistentry>
1210+
12011211
</variablelist>
12021212

12031213
</sect3>
@@ -2629,6 +2639,17 @@ ninja install
26292639
</para>
26302640
</listitem>
26312641
</varlistentry>
2642+
2643+
<varlistentry id="configure-with-sepgsql-meson">
2644+
<term><option>-Dselinux={ auto | enabled | disabled }</option></term>
2645+
<listitem>
2646+
<para>
2647+
Build with SElinux support, enabling the <xref linkend="sepgsql"/>
2648+
extension. Defaults to auto.
2649+
</para>
2650+
</listitem>
2651+
</varlistentry>
2652+
26322653
</variablelist>
26332654
</sect3>
26342655

doc/src/sgml/sepgsql.sgml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,14 @@ Policy from config file: targeted
8787
</para>
8888

8989
<para>
90-
To build this module, include the option <literal>--with-selinux</literal> in
91-
your PostgreSQL <literal>configure</literal> command. Be sure that the
92-
<filename>libselinux-devel</filename> RPM is installed at build time.
90+
To build this module specify <xref
91+
linkend="configure-option-with-sepgsql"/> (when using <link
92+
linkend="install-make">make and autoconf</link> ) or <xref
93+
linkend="configure-with-sepgsql-meson"/> (when using <link
94+
linkend="install-meson">meson</link>).
95+
96+
Be sure that the <filename>libselinux-devel</filename> RPM is installed at
97+
build time.
9398
</para>
9499

95100
<para>

0 commit comments

Comments
 (0)
0