From patchwork Wed Feb 20 16:04:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Lautrbach X-Patchwork-Id: 10822445 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 5DA3013B5 for ; Wed, 20 Feb 2019 16:04:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A62F2F004 for ; Wed, 20 Feb 2019 16:04:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38B1E2EB76; Wed, 20 Feb 2019 16:04:58 +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 AF4F12EFEB for ; Wed, 20 Feb 2019 16:04:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726174AbfBTQE5 (ORCPT ); Wed, 20 Feb 2019 11:04:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56270 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbfBTQE5 (ORCPT ); Wed, 20 Feb 2019 11:04:57 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4B696CFEBB for ; Wed, 20 Feb 2019 16:04:57 +0000 (UTC) Received: from workstation.brq.redhat.com (unknown [10.43.12.40]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9BC8317976; Wed, 20 Feb 2019 16:04:56 +0000 (UTC) From: Petr Lautrbach To: selinux@vger.kernel.org Cc: Petr Lautrbach Subject: [PATCH 1/3] Always use /usr/bin/python3 in Python scripts Date: Wed, 20 Feb 2019 17:04:44 +0100 Message-Id: <20190220160446.23150-2-plautrba@redhat.com> In-Reply-To: <20190220160446.23150-1-plautrba@redhat.com> References: <20190220160446.23150-1-plautrba@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 20 Feb 2019 16:04:57 +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: Petr Lautrbach Acked-by: Nicolas Iooss --- dbus/selinux_server.py | 2 +- libsemanage/utils/semanage_migrate_store | 2 +- mcstrans/share/util/mlscolor-test | 2 +- mcstrans/share/util/mlstrans-test | 2 +- python/semanage/semanage | 2 +- sandbox/start | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dbus/selinux_server.py b/dbus/selinux_server.py index 6e380e58..98ab53dd 100644 --- a/dbus/selinux_server.py +++ b/dbus/selinux_server.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import dbus import dbus.service diff --git a/libsemanage/utils/semanage_migrate_store b/libsemanage/utils/semanage_migrate_store index 018b1a3e..c6caf3bf 100755 --- a/libsemanage/utils/semanage_migrate_store +++ b/libsemanage/utils/semanage_migrate_store @@ -1,4 +1,4 @@ -#!/usr/bin/python -E +#!/usr/bin/python3 -E from __future__ import print_function diff --git a/mcstrans/share/util/mlscolor-test b/mcstrans/share/util/mlscolor-test index 03fc4be4..240e996d 100644 --- a/mcstrans/share/util/mlscolor-test +++ b/mcstrans/share/util/mlscolor-test @@ -1,4 +1,4 @@ -#!/usr/bin/python -E +#!/usr/bin/python3 -E import sys import selinux diff --git a/mcstrans/share/util/mlstrans-test b/mcstrans/share/util/mlstrans-test index c026d00e..085fa82d 100644 --- a/mcstrans/share/util/mlstrans-test +++ b/mcstrans/share/util/mlstrans-test @@ -1,4 +1,4 @@ -#!/usr/bin/python -E +#!/usr/bin/python3 -E import sys import selinux diff --git a/python/semanage/semanage b/python/semanage/semanage index d6d68248..144cc000 100644 --- a/python/semanage/semanage +++ b/python/semanage/semanage @@ -1,4 +1,4 @@ -#! /usr/bin/python3 -Es +#!/usr/bin/python3 -Es # Copyright (C) 2012-2013 Red Hat # AUTHOR: Miroslav Grepl # AUTHOR: David Quigley diff --git a/sandbox/start b/sandbox/start index 7f83532f..4ed3cb5c 100644 --- a/sandbox/start +++ b/sandbox/start @@ -1,4 +1,4 @@ -#! /usr/bin/python -Es +#!/usr/bin/python3 -Es try: from subprocess import getstatusoutput except ImportError: