Skip to contentSkip to conversation

Add description of missing newrole parameter -p in newrole man page.

PATCH In review Lukas Vrabec 2 participants 3 messages Jan 11, 2016 – Jan 12, 2016 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Add description of missing newrole parameter -p in newrole man page.

---
 policycoreutils/newrole/newrole.1 | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
policycoreutils/newrole/newrole.1 +7 -1
index c47bc52..3bd57e7 100644
@@ -8,6 +8,7 @@ newrole \- run a shell with a new SELinux role
 [\fB-t\fR|\fB--type\fR]
 \fITYPE\fR
 [\fB-l\fR|\fB--level\fR]
+[\fB-p\fR|\fB--preserve-environment\fR]
 \fILEVEL\fR [-- [\fIARGS\fR]...]
 .SH DESCRIPTION
 .PP
@@ -38,7 +39,12 @@ specified by
 If
 \fILEVEL\fR
 is a range, the new context will have the sensitivity level and clearance
-specified by that range.
+specified by that range.  If the
+.B -p
+or
+.B --preserve-environment
+option is specified, then shell with new SELinux context will preserve environment variables,
+otherwise new minimal enviroment is created.
 .PP
 Additional arguments
 .I ARGS
Signature · 1 line
2.5.0
#1 lore raw

PATCH 2/2 Added missing descriptions for --*-key params in secon man page.

Fixed secon help, merged descriptions for --current-* and --self-* params.

---
 policycoreutils/secon/secon.1 |  9 ++++++++
 policycoreutils/secon/secon.c | 53 +++++++++++++++++++++----------------------
 2 files changed, 35 insertions(+), 27 deletions(-)
policycoreutils/secon/secon.1 +9 -0
index 3a8e0dd..a0ff795 100644
@@ -69,6 +69,9 @@ gets the exec context from the specified process PID
 \fB\-\-pid\-fs\fR
 gets the fscreate context from the specified process PID
 .TP
+\fB\-\-pid\-key\fR
+gets the key context from the specified process PID
+.TP
 \fB\-\-current\fR, \fB\-\-self\fR
 gets the context from the current process
 .TP
@@ -78,6 +81,9 @@ gets the exec context from the current process
 \fB\-\-current\-fs\fR, \fB\-\-self\-fs\fR
 gets the fscreate context from the current process
 .TP
+\fB\-\-current\-key\fR, \fB\-\-self\-key\fR
+gets the key context from the current process
+.TP
 \fB\-\-parent\fR
 gets the context from the parent of the current process
 .TP
@@ -86,6 +92,9 @@ gets the exec context from the parent of the current process
 .TP
 \fB\-\-parent\-fs\fR
 gets the fscreate context from the parent of the current process
+.TP
+\fB\-\-parent\-key\fR
+gets the key context from the parent of the current process
 .PP
 Additional argument
 .I CONTEXT
policycoreutils/secon/secon.c +26 -27

59 lines not on this page · raw message

Signature · 1 line
2.5.0
#2 lore raw
In reply to Lukas Vrabec
Quoted 1 line · Lukas Vrabec

I fixed a minor typo in this patch. Otherwise looks good. Both patches applied. Thanks!

Quoted 31 lines
---
 policycoreutils/newrole/newrole.1 | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
policycoreutils/newrole/newrole.1 +7 -1
index c47bc52..3bd57e7 100644
@@ -8,6 +8,7 @@ newrole \- run a shell with a new SELinux role
 [\fB-t\fR|\fB--type\fR]
 \fITYPE\fR
 [\fB-l\fR|\fB--level\fR]
+[\fB-p\fR|\fB--preserve-environment\fR]
 \fILEVEL\fR [-- [\fIARGS\fR]...]
 .SH DESCRIPTION
 .PP
@@ -38,7 +39,12 @@ specified by
 If
 \fILEVEL\fR
 is a range, the new context will have the sensitivity level and clearance
-specified by that range.
+specified by that range.  If the
+.B -p
+or
+.B --preserve-environment
+option is specified, then shell with new SELinux context will preserve environment variables,
+otherwise new minimal enviroment is created.
 .PP
 Additional arguments
 .I ARGS