Add description of missing newrole parameter -p in newrole man page.
PATCH 1/2 Add description of missing newrole parameter -p in newrole man page.
Signed-off-by Lukas Vrabec <[email protected]>
--- policycoreutils/newrole/newrole.1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
policycoreutils/newrole/newrole.1 +7 -1
@@ -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
PATCH 2/2 Added missing descriptions for --*-key params in secon man page.
Fixed secon help, merged descriptions for --current-* and --self-* params.
Signed-off-by Lukas Vrabec <[email protected]>
--- policycoreutils/secon/secon.1 | 9 ++++++++ policycoreutils/secon/secon.c | 53 +++++++++++++++++++++---------------------- 2 files changed, 35 insertions(+), 27 deletions(-)
policycoreutils/secon/secon.1 +9 -0
@@ -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
Quoted 1 line · Lukas Vrabec
Signed-off-by Lukas Vrabec <[email protected]>
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@@ -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