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

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