From patchwork Tue Feb 5 08:56:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vit Mojzis X-Patchwork-Id: 10797041 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4E84913A4 for ; Tue, 5 Feb 2019 08:56:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D2DB2B6C5 for ; Tue, 5 Feb 2019 08:56:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3156D2B730; Tue, 5 Feb 2019 08:56:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D35B52B6C5 for ; Tue, 5 Feb 2019 08:56:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727905AbfBEI4P (ORCPT ); Tue, 5 Feb 2019 03:56:15 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40795 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725898AbfBEI4P (ORCPT ); Tue, 5 Feb 2019 03:56:15 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 61B965944F for ; Tue, 5 Feb 2019 08:56:15 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.43.12.184]) by smtp.corp.redhat.com (Postfix) with ESMTP id CBC8F61532 for ; Tue, 5 Feb 2019 08:56:14 +0000 (UTC) From: Vit Mojzis To: selinux@vger.kernel.org Subject: [PATCH] checkpolicy: Add -S option to manpage Date: Tue, 5 Feb 2019 09:56:10 +0100 Message-Id: <20190205085610.14029-1-vmojzis@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 05 Feb 2019 08:56:15 +0000 (UTC) Sender: selinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Vit Mojzis --- checkpolicy/checkpolicy.8 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/checkpolicy/checkpolicy.8 b/checkpolicy/checkpolicy.8 index 1c8805d5..a3e4acc0 100644 --- a/checkpolicy/checkpolicy.8 +++ b/checkpolicy/checkpolicy.8 @@ -39,6 +39,9 @@ Write a binary policy file to the specified filename. .B \-c policyvers Specify the policy version, defaults to the latest. .TP +.B \-S,\-\-sort +Sort ocontexts before writing out the binary policy. This option makes output of checkpolicy consistent with binary policies created by semanage and secilc. +.TP .B \-t,\-\-target Specify the target platform (selinux or xen). .TP