Message ID | 1470335645-24224-13-git-send-email-jason@perfinion.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <selinux-bounces@tycho.nsa.gov> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D1BE66089F for <patchwork-selinux@patchwork.kernel.org>; Thu, 4 Aug 2016 18:38:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4EDB283E4 for <patchwork-selinux@patchwork.kernel.org>; Thu, 4 Aug 2016 18:38:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9DDC2841F; Thu, 4 Aug 2016 18:38:56 +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=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from emsm-gh1-uea10.nsa.gov (smtp.nsa.gov [8.44.101.8]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 441812841C for <patchwork-selinux@patchwork.kernel.org>; Thu, 4 Aug 2016 18:38:56 +0000 (UTC) Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea10.nsa.gov with ESMTP; 04 Aug 2016 18:38:49 +0000 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 u74IclaI012086; Thu, 4 Aug 2016 14:38:48 -0400 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 u74IZHtJ250324 for <selinux@prometheus.infosec.tycho.ncsc.mil>; Thu, 4 Aug 2016 14:35:17 -0400 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 u74IZJk2011426 for <selinux@tycho.nsa.gov>; Thu, 4 Aug 2016 14:35:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1BwAABGiqNXf0HcVdFcHQGCeoEDfLcQhAwghX0CgUhMAQEBAQEBEwEBCQsLCReFEAIBAxIuAQE3AQ9AETQBBQEcO4gPAQ2hB4EyPjGKVIUqAQEFi0UBAQEBAQUCARwDBRCED4gig0KBfQuDB48QiimGGohqZYhfhXqOaTCBD4JZggJhAYcqAQEB X-IPAS-Result: A1BwAABGiqNXf0HcVdFcHQGCeoEDfLcQhAwghX0CgUhMAQEBAQEBEwEBCQsLCReFEAIBAxIuAQE3AQ9AETQBBQEcO4gPAQ2hB4EyPjGKVIUqAQEFi0UBAQEBAQUCARwDBRCED4gig0KBfQuDB48QiimGGohqZYhfhXqOaTCBD4JZggJhAYcqAQEB X-IronPort-AV: E=Sophos;i="5.28,471,1464667200"; d="scan'208";a="5626393" Received: from emsm-gh1-uea11.corp.nsa.gov (HELO emsm-gh1-uea11.nsa.gov) ([10.208.41.37]) by goalie.tycho.ncsc.mil with ESMTP; 04 Aug 2016 14:36:07 -0400 Received: from mail-pa0-f65.google.com ([209.85.220.65]) by emsm-gh1-uea11.nsa.gov with ESMTP/TLS/AES128-GCM-SHA256; 04 Aug 2016 18:34:55 +0000 Received: by mail-pa0-f65.google.com with SMTP id ez1so17904142pab.3 for <selinux@tycho.nsa.gov>; Thu, 04 Aug 2016 11:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perfinion-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=lskF9RN1rP8/r5pECSpzdGlex6bGFgik8ujQUsMbDmo=; b=deIgiJfoGdPEhH9pMXJ9GhYiRBIfVPwUwGjDstvl8tO37uQ9J68K5w2scdJf1Ku3CS YZZ3eb2KEGnvYrOUnFsp6vZvwCG61lB3UT9x6FqasI+UJSjMNb2pDdMYZwLmHXCHYLyF rhfvqbQbg0PoWDMX8+U8YWBgPIFFLZT/1KDvaLGWwdowcsRgJe1X1/D2UXRvLspBH5y3 gc5NTYDuNZJSTjLITbURR/3JLPPQCr+pBccRJGNFI5/SNL+5ePXSWJu0midtbRifhzB1 POXyCbgvk/CmliEnQwspHhUZ8Kzee63ag/slhehQvaPOXp84yrM6Lq00zQP1+jKPPooP FDOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=lskF9RN1rP8/r5pECSpzdGlex6bGFgik8ujQUsMbDmo=; b=GY2BWTkhmvs25P0+kn/xbs5Tyx90THnFlli6b+69UkX9hwfpr2bzuVWuza9LZ8eACR We7s5IPB4b6sISTEzO41FWq1OC2eBdtw/YvrB46Hh5Kr5Tddr+XVTAYhnX9h001ZWCv7 eS4drQ8vm+gviP7xqXVV4K2NaGf7hVfWdsBYCyXYtdyCS+XS7vOLyNnNsziDbMKJ+8Lv 2V52qyhgqiPvgi47NH9p2H0pesY37AV8xDDQp5odv+82OLWskMdpwzhprFs44O5VDK8y Vic+6sta/7VMVOfJw9J330bsk8GKoCW7Uv7dVPf1HyPKkRF+5UbEa9QnUWvN26DjzBsn ytLg== X-Gm-Message-State: AEkooutbSmrchIfbdtg6M8uusTP/QbolBL33GtU1OOTAxF5PqfSjSsOvEB7Zi1hiAVZkvg== X-Received: by 10.66.54.132 with SMTP id j4mr4689482pap.110.1470335694392; Thu, 04 Aug 2016 11:34:54 -0700 (PDT) Received: from localhost ([2404:e800:e600:57b:dcfa:b5a4:c9d2:f744]) by smtp.gmail.com with ESMTPSA id d72sm22089073pfj.15.2016.08.04.11.34.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Aug 2016 11:34:53 -0700 (PDT) From: Jason Zaman <jason@perfinion.com> To: selinux@tycho.nsa.gov Subject: [PATCH 12/12] semanage: Print usage when no args Date: Fri, 5 Aug 2016 02:34:05 +0800 Message-Id: <1470335645-24224-13-git-send-email-jason@perfinion.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1470335645-24224-1-git-send-email-jason@perfinion.com> References: <1470335645-24224-1-git-send-email-jason@perfinion.com> X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" <selinux.tycho.nsa.gov> List-Post: <mailto:selinux@tycho.nsa.gov> List-Help: <mailto:selinux-request@tycho.nsa.gov?subject=help> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" <selinux-bounces@tycho.nsa.gov> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/policycoreutils/semanage/semanage b/policycoreutils/semanage/semanage index d945243..5d783b1 100644 --- a/policycoreutils/semanage/semanage +++ b/policycoreutils/semanage/semanage @@ -856,6 +856,7 @@ def createCommandParser(): #To add a new subcommand define the parser for it in a function above and call it here. subparsers = commandParser.add_subparsers(dest='subcommand') + subparsers.required = True setupImportParser(subparsers) setupExportParser(subparsers) setupLoginParser(subparsers)