Blame SOURCES/0088-doc-add-default-config-and-system-config.patch

c8bceb
From 89ca8f9c06a5252581b4428d8f53a3e5167a4c2d Mon Sep 17 00:00:00 2001
c8bceb
From: Eric Garver <eric@garver.life>
c8bceb
Date: Tue, 20 Aug 2019 09:01:17 -0400
c8bceb
Subject: [PATCH] doc: add --default-config and --system-config
c8bceb
c8bceb
They were already in the --help output of commands, but now they'll be
c8bceb
in the man page. These option are heavily used by the testsuite, but may
c8bceb
be useful to users as well.
c8bceb
c8bceb
Fixes: rhbz 1740074
c8bceb
(cherry picked from commit d48c6f7800114b88f8abe0799b32b9f94fa82790)
c8bceb
---
c8bceb
 doc/xml/firewall-offline-cmd.xml | 30 ++++++++++++++++++++++++++++--
c8bceb
 doc/xml/firewalld.xml.in         | 26 +++++++++++++++++++++++---
c8bceb
 2 files changed, 51 insertions(+), 5 deletions(-)
c8bceb
c8bceb
diff --git a/doc/xml/firewall-offline-cmd.xml b/doc/xml/firewall-offline-cmd.xml
c8bceb
index d66f45abb753..aeaf3dc0ebd5 100644
c8bceb
--- a/doc/xml/firewall-offline-cmd.xml
c8bceb
+++ b/doc/xml/firewall-offline-cmd.xml
c8bceb
@@ -110,6 +110,27 @@
c8bceb
 	    </para>
c8bceb
 	  </listitem>
c8bceb
 	</varlistentry>
c8bceb
+
c8bceb
+    <varlistentry>
c8bceb
+      <term><option>--default-config</option></term>
c8bceb
+      <listitem>
c8bceb
+        <para>
c8bceb
+          Path to firewalld default configuration. This usually defaults to
c8bceb
+          <filename class="directory">/usr/lib/firewalld</filename>.
c8bceb
+        </para>
c8bceb
+      </listitem>
c8bceb
+    </varlistentry>
c8bceb
+
c8bceb
+    <varlistentry>
c8bceb
+      <term><option>--system-config</option></term>
c8bceb
+      <listitem>
c8bceb
+        <para>
c8bceb
+          Path to firewalld system (user) configuration. This usually defaults
c8bceb
+          to <filename class="directory">/etc/firewalld</filename>.
c8bceb
+        </para>
c8bceb
+      </listitem>
c8bceb
+    </varlistentry>
c8bceb
+
c8bceb
       </variablelist>
c8bceb
     </refsect2>
c8bceb
 
c8bceb
@@ -138,8 +159,13 @@
c8bceb
       <term><option>--check-config</option></term>
c8bceb
       <listitem>
c8bceb
         <para>
c8bceb
-          Run checks on the permanent configuration. This includes XML validity
c8bceb
-          and semantics.
c8bceb
+          Run checks on the permanent (default and system) configuration. This
c8bceb
+          includes XML validity and semantics.
c8bceb
+        </para>
c8bceb
+        <para>
c8bceb
+          This is may be used with <option>--system-config</option> to check
c8bceb
+          the validity of handwritten configuration files before copying them
c8bceb
+          to the standard location.
c8bceb
         </para>
c8bceb
       </listitem>
c8bceb
     </varlistentry>
c8bceb
diff --git a/doc/xml/firewalld.xml.in b/doc/xml/firewalld.xml.in
c8bceb
index de8020591cd1..c076d4b55738 100644
c8bceb
--- a/doc/xml/firewalld.xml.in
c8bceb
+++ b/doc/xml/firewalld.xml.in
c8bceb
@@ -76,6 +76,16 @@
c8bceb
 	</listitem>
c8bceb
       </varlistentry>
c8bceb
 
c8bceb
+    <varlistentry>
c8bceb
+      <term><option>--default-config</option></term>
c8bceb
+      <listitem>
c8bceb
+        <para>
c8bceb
+          Path to firewalld default configuration. This usually defaults to
c8bceb
+          <filename class="directory">/usr/lib/firewalld</filename>.
c8bceb
+        </para>
c8bceb
+      </listitem>
c8bceb
+    </varlistentry>
c8bceb
+
c8bceb
       <varlistentry>
c8bceb
         <term><option>--debug</option><optional>=<replaceable>level</replaceable></optional></term>
c8bceb
         <listitem>
c8bceb
@@ -111,6 +121,16 @@
c8bceb
 	  </para>
c8bceb
 	</listitem>
c8bceb
       </varlistentry>
c8bceb
+
c8bceb
+    <varlistentry>
c8bceb
+      <term><option>--system-config</option></term>
c8bceb
+      <listitem>
c8bceb
+        <para>
c8bceb
+          Path to firewalld system (user) configuration. This usually defaults
c8bceb
+          to <filename class="directory">/etc/firewalld</filename>.
c8bceb
+        </para>
c8bceb
+      </listitem>
c8bceb
+    </varlistentry>
c8bceb
     </variablelist>
c8bceb
   </refsect1>
c8bceb
 
c8bceb
@@ -120,7 +140,7 @@
c8bceb
       firewalld has a D-Bus interface for firewall configuration of services and applications. It also has a command line client for the user. Services or applications already using D-Bus can request changes to the firewall with the D-Bus interface directly.  For more information on the firewalld D-Bus interface, please have a look at <citerefentry><refentrytitle>firewalld.dbus</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
c8bceb
     </para>
c8bceb
     <para>
c8bceb
-      firewalld provides support for zones, predefined services and ICMP types and has a separation of runtime and permanent configuration options. Permanent configuration is loaded from XML files in <filename class="directory">/usr/lib/firewalld</filename> or <filename class="directory">/etc/firewalld</filename> (see <xref linkend="directories"/>).
c8bceb
+      firewalld provides support for zones, predefined services and ICMP types and has a separation of runtime and permanent configuration options. Permanent configuration is loaded from XML files in <filename class="directory">/usr/lib/firewalld</filename> (<option>--default-config</option>) or <filename class="directory">/etc/firewalld</filename> (<option>--system-config</option>) (see <xref linkend="directories"/>).
c8bceb
     </para>
c8bceb
     <para>
c8bceb
       If NetworkManager is not in use and firewalld gets started after the network is already up, the connections and manually created interfaces are not bound to the zone specified in the ifcfg file.
c8bceb
@@ -190,7 +210,7 @@
c8bceb
     </para>
c8bceb
 
c8bceb
     <refsect2>
c8bceb
-      <title>Default/Fallback configuration in <filename class="directory">/usr/lib/firewalld</filename></title>
c8bceb
+      <title>Default/Fallback configuration in <filename class="directory">/usr/lib/firewalld</filename> (<option>--default-config</option>)</title>
c8bceb
 
c8bceb
       <para>
c8bceb
 	This directory contains the default and fallback configuration provided by firewalld for icmptypes, services and zones. The files provided with the firewalld package should not get changed and the changes are gone with an update of the firewalld package. Additional <option>icmptypes</option>, <option>services</option> and <option>zones</option> can be provided with packages or by creating files.
c8bceb
@@ -198,7 +218,7 @@
c8bceb
     </refsect2>
c8bceb
 
c8bceb
     <refsect2>
c8bceb
-      <title>System configuration settings in <filename class="directory">/etc/firewalld</filename></title>
c8bceb
+      <title>System configuration settings in <filename class="directory">/etc/firewalld</filename> (<option>--system-config</option>)</title>
c8bceb
 
c8bceb
       <para>
c8bceb
 	The system or user configuration stored here is either created by the system administrator or by customization with the configuration interface of firewalld or by hand. The files will overload the default configuration files.
c8bceb
-- 
c8bceb
2.20.1
c8bceb