From patchwork Mon Jan 11 09:30:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Vrabec X-Patchwork-Id: 8000861 Return-Path: X-Original-To: patchwork-selinux@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 07198BEEE5 for ; Mon, 11 Jan 2016 09:33:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0678F20160 for ; Mon, 11 Jan 2016 09:33:41 +0000 (UTC) Received: from emvm-gh1-uea09.nsa.gov (emvm-gh1-uea09.nsa.gov [63.239.67.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 09D2920114 for ; Mon, 11 Jan 2016 09:33:39 +0000 (UTC) X-TM-IMSS-Message-ID: <739498860003e6f4@nsa.gov> Received: from tarius.tycho.ncsc.mil ([144.51.242.1]) by nsa.gov ([10.208.42.194]) with ESMTP (TREND IMSS SMTP Service 7.1) id 739498860003e6f4 ; Mon, 11 Jan 2016 04:34:00 -0500 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u0B9V03J006637; Mon, 11 Jan 2016 04:31:10 -0500 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id u0B9Uvl9068323 for ; Mon, 11 Jan 2016 04:30:57 -0500 Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id u0B9Uv73006631 for ; Mon, 11 Jan 2016 04:30:57 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1BqBQBmdZNWfxy3hNFeGQEBAQEQAQICAYQgJohZpAEBjUmEBxOFfIFsAQEBAQEBEgEBCwsKCCGFYoEOQ4guvwuGVokjf4QZBZcTjVmOfY5Rgi4BC4I1PTSEXYFLAQEB X-IPAS-Result: A1BqBQBmdZNWfxy3hNFeGQEBAQEQAQICAYQgJohZpAEBjUmEBxOFfIFsAQEBAQEBEgEBCwsKCCGFYoEOQ4guvwuGVokjf4QZBZcTjVmOfY5Rgi4BC4I1PTSEXYFLAQEB X-IronPort-AV: E=Sophos;i="5.20,551,1444708800"; d="scan'208";a="5088764" Received: from emvm-gh1-uea08.nsa.gov ([10.208.42.193]) by goalie.tycho.ncsc.mil with ESMTP; 11 Jan 2016 04:30:57 -0500 X-TM-IMSS-Message-ID: <0708030100005b81@nsa.gov> Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by nsa.gov ([10.208.42.193]) with ESMTP (TREND IMSS SMTP Service 7.1; TLSv1/SSLv3 ADH-AES256-SHA (256/256)) id 0708030100005b81 ; Mon, 11 Jan 2016 04:30:38 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 22A8EC09FAA9 for ; Mon, 11 Jan 2016 09:30:55 +0000 (UTC) Received: from lvrabecPC.brq.redhat.com. (dhcp-10-40-3-90.brq.redhat.com [10.40.3.90]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u0B9Url9005424; Mon, 11 Jan 2016 04:30:54 -0500 From: Lukas Vrabec To: selinux@tycho.nsa.gov Subject: [PATCH 1/2] Add description of missing newrole parameter -p in newrole man page. Date: Mon, 11 Jan 2016 10:30:40 +0100 Message-Id: <1452504641-26411-1-git-send-email-lvrabec@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-TM-AS-MML: disable X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: MIME-Version: 1.0 Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Lukas Vrabec --- 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