diff options
author | Andres Freund | 2023-11-17 18:23:02 +0000 |
---|---|---|
committer | Andres Freund | 2023-11-17 18:23:02 +0000 |
commit | 06c70849fb26ac431a722b1d10cffe1c65e728a4 (patch) | |
tree | d723c0102ac16abeb74d6c91f9db67268b02c90a | |
parent | c04f3de3dca3b54e16d7774885c8b64f90ca259b (diff) |
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 <[email protected]>
Reported-by: Christoph Berg <[email protected]>
Discussion: https://postgr.es/m/[email protected]
-rw-r--r-- | doc/src/sgml/installation.sgml | 21 | ||||
-rw-r--r-- | doc/src/sgml/sepgsql.sgml | 11 |
2 files changed, 29 insertions, 3 deletions
diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index a3dc6eb855..8e926a3a8c 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -1198,6 +1198,16 @@ build-postgresql: </listitem> </varlistentry> + <varlistentry id="configure-option-with-sepgsql"> + <term><option>--with-selinux</option></term> + <listitem> + <para> + Build with SElinux support, enabling the <xref linkend="sepgsql"/> + extension. + </para> + </listitem> + </varlistentry> + </variablelist> </sect3> @@ -2629,6 +2639,17 @@ ninja install </para> </listitem> </varlistentry> + + <varlistentry id="configure-with-sepgsql-meson"> + <term><option>-Dselinux={ auto | enabled | disabled }</option></term> + <listitem> + <para> + Build with SElinux support, enabling the <xref linkend="sepgsql"/> + extension. Defaults to auto. + </para> + </listitem> + </varlistentry> + </variablelist> </sect3> diff --git a/doc/src/sgml/sepgsql.sgml b/doc/src/sgml/sepgsql.sgml index b368e587cb..1b848f1977 100644 --- a/doc/src/sgml/sepgsql.sgml +++ b/doc/src/sgml/sepgsql.sgml @@ -87,9 +87,14 @@ Policy from config file: targeted </para> <para> - To build this module, include the option <literal>--with-selinux</literal> in - your PostgreSQL <literal>configure</literal> command. Be sure that the - <filename>libselinux-devel</filename> RPM is installed at build time. + To build this module specify <xref + linkend="configure-option-with-sepgsql"/> (when using <link + linkend="install-make">make and autoconf</link> ) or <xref + linkend="configure-with-sepgsql-meson"/> (when using <link + linkend="install-meson">meson</link>). + + Be sure that the <filename>libselinux-devel</filename> RPM is installed at + build time. </para> <para> |