laurenceman / rpms / iptables

Forked from rpms/iptables 5 years ago
Clone

Blame SOURCES/utils-Add-a-man-page-for-nfnl_osf.patch

388998
From 77ff3d215f2a28a9ffc9fe1943c7f2b12d5e4f69 Mon Sep 17 00:00:00 2001
388998
From: Phil Sutter <psutter@redhat.com>
388998
Date: Tue, 5 Jun 2018 14:49:54 +0200
388998
Subject: [PATCH 2/2] utils: Add a man page for nfnl_osf
388998
388998
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1487331
388998
Upstream Status: iptables commit af468b6e7f35d
388998
388998
commit af468b6e7f35db09af10ae4ec65cc7803180a4b4
388998
Author: Phil Sutter <phil@nwl.cc>
388998
Date:   Wed Sep 20 18:54:09 2017 +0200
388998
388998
    utils: Add a man page for nfnl_osf
388998
388998
    Signed-off-by: Phil Sutter <phil@nwl.cc>
388998
    Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
388998
388998
Signed-off-by: Phil Sutter <psutter@redhat.com>
388998
---
388998
 configure.ac        |  3 +-
388998
 utils/.gitignore    |  1 +
388998
 utils/Makefile.am   |  4 +++
388998
 utils/nfnl_osf.8.in | 67 +++++++++++++++++++++++++++++++++++++++++++++
388998
 4 files changed, 74 insertions(+), 1 deletion(-)
388998
 create mode 100644 utils/nfnl_osf.8.in
388998
388998
diff --git a/configure.ac b/configure.ac
388998
index af710cf5481c0..9046633ce5a4d 100644
388998
--- a/configure.ac
388998
+++ b/configure.ac
388998
@@ -173,7 +173,8 @@ AC_CONFIG_FILES([Makefile extensions/GNUmakefile include/Makefile
388998
 	libiptc/Makefile libiptc/libiptc.pc
388998
 	libiptc/libip4tc.pc libiptc/libip6tc.pc
388998
 	libxtables/Makefile utils/Makefile
388998
-	include/xtables-version.h include/iptables/internal.h])
388998
+	include/xtables-version.h include/iptables/internal.h
388998
+	utils/nfnl_osf.8])
388998
 AC_OUTPUT
388998
 
388998
 
388998
diff --git a/utils/.gitignore b/utils/.gitignore
388998
index 216d1e4a621ed..7c6afbf4e6a52 100644
388998
--- a/utils/.gitignore
388998
+++ b/utils/.gitignore
388998
@@ -1,2 +1,3 @@
388998
 /nfnl_osf
388998
+/nfnl_osf.8
388998
 /nfbpf_compile
388998
diff --git a/utils/Makefile.am b/utils/Makefile.am
388998
index c4192a9e73688..80029e303ff3b 100644
388998
--- a/utils/Makefile.am
388998
+++ b/utils/Makefile.am
388998
@@ -6,8 +6,10 @@ AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include \
388998
 
388998
 sbin_PROGRAMS =
388998
 pkgdata_DATA =
388998
+man_MANS =
388998
 
388998
 if HAVE_LIBNFNETLINK
388998
+man_MANS += nfnl_osf.8
388998
 sbin_PROGRAMS += nfnl_osf
388998
 pkgdata_DATA += pf.os
388998
 
388998
@@ -23,3 +25,5 @@ if ENABLE_SYNCONF
388998
 sbin_PROGRAMS += nfsynproxy
388998
 nfsynproxy_LDADD = -lpcap
388998
 endif
388998
+
388998
+CLEANFILES = nfnl_osf.8
388998
diff --git a/utils/nfnl_osf.8.in b/utils/nfnl_osf.8.in
388998
new file mode 100644
388998
index 0000000000000..140b5c3f99a42
388998
--- /dev/null
388998
+++ b/utils/nfnl_osf.8.in
388998
@@ -0,0 +1,67 @@
388998
+.TH NFNL_OSF 8 "" "@PACKAGE_STRING@" "@PACKAGE_STRING@"
388998
+
388998
+.SH NAME
388998
+nfnl_osf \- OS fingerprint loader utility
388998
+.SH SYNOPSIS
388998
+
388998
+.ad l
388998
+.in +8
388998
+.ti -8
388998
+.B nfnl_osf
388998
+.BI -f " fingerprints"
388998
+[
388998
+.B -d
388998
+]
388998
+
388998
+.SH DESCRIPTION
388998
+The
388998
+.B nfnl_osf
388998
+utility allows to load a set of operating system signatures into the kernel for
388998
+later matching against using iptables'
388998
+.B osf
388998
+match.
388998
+
388998
+.SH OPTIONS
388998
+
388998
+.TP
388998
+.BI -f " fingerprints"
388998
+Read signatures from file
388998
+.IR fingerprints .
388998
+
388998
+.TP
388998
+.B -d
388998
+Instead of adding the signatures from
388998
+.I fingerprints
388998
+into the kernel, remove them.
388998
+
388998
+.SH EXIT STATUS
388998
+Exit status is 0 if command succeeded, otherwise a negative return code
388998
+indicates the type of error which happened:
388998
+
388998
+.TP
388998
+.B -1
388998
+Illegal arguments passed, fingerprints file not readable or failure in netlink
388998
+communication.
388998
+
388998
+.TP
388998
+.B -ENOENT
388998
+Fingerprints file not specified.
388998
+
388998
+.TP
388998
+.B -EINVAL
388998
+Netlink handle initialization failed or fingerprints file format invalid.
388998
+
388998
+.SH FILES
388998
+
388998
+An up to date set of operating system signatures can be downloaded from
388998
+http://www.openbsd.org/cgi-bin/cvsweb/src/etc/pf.os .
388998
+
388998
+.SH SEE ALSO
388998
+
388998
+The description of
388998
+.B osf
388998
+match in
388998
+.BR iptables-extensions (8)
388998
+contains further information about the topic as well as example
388998
+.B nfnl_osf
388998
+invocations.
388998
-- 
388998
2.17.0
388998