Blame SOURCES/1255283-mpo-7.3.0-captest.8.patch

5a015b
From 720dec93c72d9a493ee768e9d892c19d5485a19a Mon Sep 17 00:00:00 2001
5a015b
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
5a015b
Date: Tue, 28 Jun 2016 11:32:03 +0200
5a015b
Subject: [PATCH 03/17] captest.8: describe --init-grp option
5a015b
5a015b
---
5a015b
 libcap-ng/man8/captest.8 | 5 ++++-
5a015b
 1 file changed, 4 insertions(+), 1 deletion(-)
5a015b
5a015b
diff --git a/libcap-ng/man8/captest.8 b/libcap-ng/man8/captest.8
5a015b
index b7a89f4..e6351a4 100644
5a015b
--- a/libcap-ng/man8/captest.8
5a015b
+++ b/libcap-ng/man8/captest.8
5a015b
@@ -2,7 +2,7 @@
5a015b
 .SH NAME
5a015b
 captest \- a program to demonstrate capabilities
5a015b
 .SH SYNOPSIS
5a015b
-.B captest [ \-\-drop-all | \-\-drop-caps | \-\-id ] [ \-\-lock ] [ \-\-text ]
5a015b
+.B captest [ \-\-drop-all | \-\-drop-caps | \-\-id ] [ \-\-init-grp ] [ \-\-lock ] [ \-\-text ]
5a015b
 .SH DESCRIPTION
5a015b
 \fBcaptest\fP is a program that demonstrates and prints out the current process capabilities. Each option prints the same report. It will output current capabilities. then it will try to access /etc/shadow directly to show if that can be done. Then it creates a child process that attempts to read /etc/shadow and outputs the results of that. Then it outputs the capabilities that a child process would have.
5a015b
 
5a015b
@@ -19,6 +19,9 @@ This drops just traditional capabilities.
5a015b
 .B \-\-id
5a015b
 This changes to uid and gid 99, drops supplemental groups, and clears the bounding set.
5a015b
 .TP
5a015b
+.B \-\-init-grp
5a015b
+This changes to uid and gid 99 and then adds any supplemental groups that comes with that account. You would have add them prior to testing because by default there are no supplemental groups on account 99.
5a015b
+.TP
5a015b
 .B \-\-text
5a015b
 This option outputs the effective capabilities in text rather than numerically.
5a015b
 .TP
5a015b
-- 
5a015b
2.7.4
5a015b