diff mbox

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

Message ID 1452504641-26411-1-git-send-email-lvrabec@redhat.com (mailing list archive)
State Accepted
Headers show

Commit Message

Lukas Vrabec Jan. 11, 2016, 9:30 a.m. UTC
Signed-off-by: Lukas Vrabec <lvrabec@redhat.com>
---
 policycoreutils/newrole/newrole.1 | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comments

Steve Lawrence Jan. 12, 2016, 1:51 p.m. UTC | #1
On 01/11/2016 04:30 AM, Lukas Vrabec wrote:
> Signed-off-by: Lukas Vrabec <lvrabec@redhat.com>

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

> ---
>  policycoreutils/newrole/newrole.1 | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/policycoreutils/newrole/newrole.1 b/policycoreutils/newrole/newrole.1
> index c47bc52..3bd57e7 100644
> --- a/policycoreutils/newrole/newrole.1
> +++ b/policycoreutils/newrole/newrole.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
>
diff mbox

Patch

diff --git a/policycoreutils/newrole/newrole.1 b/policycoreutils/newrole/newrole.1
index c47bc52..3bd57e7 100644
--- a/policycoreutils/newrole/newrole.1
+++ b/policycoreutils/newrole/newrole.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