From 51bfe6f1336d8924ebfab5839412833387a618e1 Mon Sep 17 00:00:00 2001
From: Scorpion <zfridric@redhat.com>
Date: Wed, 10 Jul 2019 16:20:13 +0200
Subject: [PATCH] manpage for fapolicyd-cli added (#38)
---
doc/Makefile.am | 2 +-
doc/fapolicyd-cli.1 | 22 ++++++++++++++++++++++
doc/fapolicyd.8 | 3 ++-
doc/fapolicyd.conf.5 | 7 ++++---
doc/fapolicyd.rules.5 | 5 +++--
fapolicyd.spec | 1 +
6 files changed, 33 insertions(+), 7 deletions(-)
create mode 100644 doc/fapolicyd-cli.1
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 7fabe91..bd56170 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -22,5 +22,5 @@
EXTRA_DIST = $(man_MANS)
-man_MANS = fapolicyd.8 fapolicyd.rules.5 fapolicyd.conf.5
+man_MANS = fapolicyd.8 fapolicyd-cli.1 fapolicyd.rules.5 fapolicyd.conf.5
diff --git a/doc/fapolicyd-cli.1 b/doc/fapolicyd-cli.1
new file mode 100644
index 0000000..85d29cf
--- /dev/null
+++ b/doc/fapolicyd-cli.1
@@ -0,0 +1,22 @@
+.TH "FAPOLICYD-CLI" "1" "July 2019" "Red Hat" "System Administration Utilities"
+.SH NAME
+fapolicyd-cli \- Fapolicyd CLI Tool
+.SH SYNOPSIS
+\fBfapolicyd-cli\fP [\fIoptions\fP]
+.SH DESCRIPTION
+Fapolicyd CLI Tool.
+.SH OPTIONS
+.TP
+.B \-h, \-\-help
+Prints this help message.
+.TP
+.B \-u, \-\-update
+Notifies fapolicyd to perform update of database.
+.SH "SEE ALSO"
+.BR fapolicyd (8),
+.BR fapolicyd.rules (5)
+and
+.BR fapolicyd.conf (5)
+
+.SH AUTHOR
+Zoltan Fridrich
diff --git a/doc/fapolicyd.8 b/doc/fapolicyd.8
index 01745d4..3cfaaef 100644
--- a/doc/fapolicyd.8
+++ b/doc/fapolicyd.8
@@ -1,4 +1,4 @@
-.TH "FAPOLICYD" "8" "June 2018" "Red Hat" "System Administration Utilities"
+.TH "FAPOLICYD" "8" "July 2019" "Red Hat" "System Administration Utilities"
.SH NAME
fapolicyd \- File Access Policy Daemon
.SH SYNOPSIS
@@ -58,6 +58,7 @@ To get audit events, you must have auditing enabled and at least one systemcall
- information about what was being accessed.
.SH "SEE ALSO"
+.BR fapolicyd-cli (1),
.BR fapolicyd.rules (5)
and
.BR fapolicyd.conf (5)
diff --git a/doc/fapolicyd.conf.5 b/doc/fapolicyd.conf.5
index 2e758cc..87e994c 100644
--- a/doc/fapolicyd.conf.5
+++ b/doc/fapolicyd.conf.5
@@ -1,4 +1,4 @@
-.TH FAPOLICYD.CONF: "5" "June 2018" "Red Hat" "System Administration Utilities"
+.TH FAPOLICYD.CONF: "5" "July 2019" "Red Hat" "System Administration Utilities"
.SH NAME
fapolicyd.conf \- fapolicyd configuration file
.SH DESCRIPTION
@@ -47,9 +47,10 @@ This option controls how many entries the subject cache holds. You want the size
This option controls how many entries the object cache holds. You want the size to be big enough that you are not getting too many evictions compared to hits. But you don't want to waste memory. Whenever there is an eviction, fapolicyd has to regenerate information about the subject and this slows performance. The default value is 4096.
.SH "SEE ALSO"
-.BR fapolicyd(8)
+.BR fapolicyd (8),
+.BR fapolicyd-cli (1)
and
-.BR fapolicy.rules(5).
+.BR fapolicy.rules (5).
.SH AUTHOR
Steve Grubb
diff --git a/doc/fapolicyd.rules.5 b/doc/fapolicyd.rules.5
index 887bdf7..067fa43 100644
--- a/doc/fapolicyd.rules.5
+++ b/doc/fapolicyd.rules.5
@@ -1,4 +1,4 @@
-.TH FAPOLICYD.RULES: "7" "May 2016" "Red Hat" "System Administration Utilities"
+.TH FAPOLICYD.RULES: "7" "July 2019" "Red Hat" "System Administration Utilities"
.SH NAME
fapolicyd.rules \- fapolicyd rules to determine access rights
.SH DESCRIPTION
@@ -129,7 +129,8 @@ The following rules show how rules may look.
.fi
.SH "SEE ALSO"
-.BR fapolicyd (8)
+.BR fapolicyd (8),
+.BR fapolicyd-cli (1)
and
.BR fapolicyd.conf (5)
diff --git a/fapolicyd.spec b/fapolicyd.spec
index 66656b6..fed4dd4 100644
--- a/fapolicyd.spec
+++ b/fapolicyd.spec
@@ -61,6 +61,7 @@ getent passwd %{name} >/dev/null || useradd -r -M -d %{_localstatedir}/lib/%{nam
%attr(755,root,root) %{_sbindir}/%{name}-cli
%attr(644,root,root) %{_mandir}/man8/*
%attr(644,root,root) %{_mandir}/man5/*
+%attr(644,root,root) %{_mandir}/man1/*
%ghost %{_localstatedir}/log/%{name}-access.log
%attr(770,root,%{name}) %dir %{_localstatedir}/lib/%{name}
%attr(770,root,%{name}) %dir /run/%{name}