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

7dd887
From 720dec93c72d9a493ee768e9d892c19d5485a19a Mon Sep 17 00:00:00 2001
7dd887
From: =?UTF-8?q?Nikola=20Forr=C3=B3?= <nforro@redhat.com>
7dd887
Date: Tue, 28 Jun 2016 11:32:03 +0200
7dd887
Subject: [PATCH 03/17] captest.8: describe --init-grp option
7dd887
7dd887
---
7dd887
 libcap-ng/man8/captest.8 | 5 ++++-
7dd887
 1 file changed, 4 insertions(+), 1 deletion(-)
7dd887
7dd887
diff --git a/libcap-ng/man8/captest.8 b/libcap-ng/man8/captest.8
7dd887
index b7a89f4..e6351a4 100644
7dd887
--- a/libcap-ng/man8/captest.8
7dd887
+++ b/libcap-ng/man8/captest.8
7dd887
@@ -2,7 +2,7 @@
7dd887
 .SH NAME
7dd887
 captest \- a program to demonstrate capabilities
7dd887
 .SH SYNOPSIS
7dd887
-.B captest [ \-\-drop-all | \-\-drop-caps | \-\-id ] [ \-\-lock ] [ \-\-text ]
7dd887
+.B captest [ \-\-drop-all | \-\-drop-caps | \-\-id ] [ \-\-init-grp ] [ \-\-lock ] [ \-\-text ]
7dd887
 .SH DESCRIPTION
7dd887
 \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.
7dd887
 
7dd887
@@ -19,6 +19,9 @@ This drops just traditional capabilities.
7dd887
 .B \-\-id
7dd887
 This changes to uid and gid 99, drops supplemental groups, and clears the bounding set.
7dd887
 .TP
7dd887
+.B \-\-init-grp
7dd887
+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.
7dd887
+.TP
7dd887
 .B \-\-text
7dd887
 This option outputs the effective capabilities in text rather than numerically.
7dd887
 .TP
7dd887
-- 
7dd887
2.7.4
7dd887