From patchwork Sun Oct 1 16:15:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Iooss X-Patchwork-Id: 9979769 Return-Path: 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 3A13C6022E for ; Sun, 1 Oct 2017 16:16:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 281D428750 for ; Sun, 1 Oct 2017 16:16:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D0A7288A8; Sun, 1 Oct 2017 16:16:46 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from uhil19pa12.eemsg.mail.mil (uhil19pa12.eemsg.mail.mil [214.24.21.85]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3B2628750 for ; Sun, 1 Oct 2017 16:16:44 +0000 (UTC) Received: from emsm-gh1-uea10.ncsc.mil ([214.29.60.2]) by uhil19pa12.eemsg.mail.mil with ESMTP; 01 Oct 2017 16:16:44 +0000 Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by EMSM-GH1-UEA10.NCSC.MIL with ESMTP; 01 Oct 2017 16:16:44 +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 v91GGgQf017938; Sun, 1 Oct 2017 12:16:42 -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 v91GGIH7049792 for ; Sun, 1 Oct 2017 12:16:18 -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 v91GGIlw017904 for ; Sun, 1 Oct 2017 12:16:18 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A1BXAwDVE9FZfykbGNZcg2IoZ24njwyOb?= =?us-ascii?q?I9HiGmCDhMIgWaHb1cBAgEBAQEBAhMBAQsWhXYGgQk5ARdXGYhegVIDAQGncYQ?= =?us-ascii?q?Rh0+CN3ZHgTuBUYlbgQMBA4UoBYoSlk5Sgi6FMIcqhVCCfJAalVSBOYFlMiEyh?= =?us-ascii?q?RsMgkl0hw4NGIIcAQEB?= X-IPAS-Result: =?us-ascii?q?A1BXAwDVE9FZfykbGNZcg2IoZ24njwyObI9HiGmCDhMIgWa?= =?us-ascii?q?Hb1cBAgEBAQEBAhMBAQsWhXYGgQk5ARdXGYhegVIDAQGncYQRh0+CN3ZHgTuBU?= =?us-ascii?q?YlbgQMBA4UoBYoSlk5Sgi6FMIcqhVCCfJAalVSBOYFlMiEyhRsMgkl0hw4NGII?= =?us-ascii?q?cAQEB?= X-IronPort-AV: E=Sophos;i="5.42,464,1500955200"; d="scan'208";a="68896" Received: from emsm-gh1-uea10.ncsc.mil ([214.29.60.34]) by goalie.tycho.ncsc.mil with ESMTP; 01 Oct 2017 12:16:14 -0400 Received: from updc3cpa02.eemsg.mail.mil ([214.24.27.41]) by EMSM-GH1-UEA10.NCSC.MIL with ESMTP; 01 Oct 2017 16:16:14 +0000 X-EEMSG-check-005: 0 X-EEMSG-check-006: 000-001;b0803b02-3a8a-4cd5-864a-9920f06418e5 Authentication-Results: upbd19pa02.eemsg.mail.mil; dkim=neutral (message not signed) header.i=none X-EEMSG-check-008: 248488289|UPBD19PA02_EEMSG_MP2.csd.disa.mil X-EEMSG-SBRS: 3.5 X-EEMSG-ORIG-IP: 129.104.30.34 X-EEMSG-check-002: true X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CvAQALFNFZhyIeaIFcHQYMgzOBD24njwyObI9HiGmCDhMIgWaHb0MUAQIBAQEBAQEBEwEBAQoLCQgoL4UZBoEJOQEXVxmIXoFSBAGncYQRh0+DLUeBO4FRiVuBAwEDhSgFihKWTlKCLoUwhyqFUIJ8kBqVVIE5NoEvMiEyhRsMgkl0hw4NGIIcAQEB X-IPAS-Result: A0CvAQALFNFZhyIeaIFcHQYMgzOBD24njwyObI9HiGmCDhMIgWaHb0MUAQIBAQEBAQEBEwEBAQoLCQgoL4UZBoEJOQEXVxmIXoFSBAGncYQRh0+DLUeBO4FRiVuBAwEDhSgFihKWTlKCLoUwhyqFUIJ8kBqVVIE5NoEvMiEyhRsMgkl0hw4NGIIcAQEB Received: from mx1.polytechnique.org ([129.104.30.34]) by upbd19pa02.eemsg.mail.mil with ESMTP; 01 Oct 2017 16:16:14 +0000 Received: from localhost.localdomain (32.206.133.77.rev.sfr.net [77.133.206.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id C4A93561238 for ; Sun, 1 Oct 2017 18:15:41 +0200 (CEST) From: Nicolas Iooss To: selinux@tycho.nsa.gov Date: Sun, 1 Oct 2017 18:15:17 +0200 Message-Id: <20171001161517.16407-4-nicolas.iooss@m4x.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171001161517.16407-1-nicolas.iooss@m4x.org> References: <20171001161517.16407-1-nicolas.iooss@m4x.org> X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Sun Oct 1 18:15:42 2017 +0200 (CEST)) X-Org-Mail: nicolas.iooss.2010@polytechnique.org Subject: [PATCH 4/4] gui: remove mappingsPage X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP This page is not used anywhere and seems to be an incomplete version of loginsPage. Signed-off-by: Nicolas Iooss --- gui/Makefile | 1 - gui/mappingsPage.py | 60 ----------------------------------------------------- 2 files changed, 61 deletions(-) delete mode 100644 gui/mappingsPage.py diff --git a/gui/Makefile b/gui/Makefile index ac844b6b9198..cfe47405e83f 100644 --- a/gui/Makefile +++ b/gui/Makefile @@ -11,7 +11,6 @@ domainsPage.py \ fcontextPage.py \ html_util.py \ loginsPage.py \ -mappingsPage.py \ modulesPage.py \ polgen.glade \ portsPage.py \ diff --git a/gui/mappingsPage.py b/gui/mappingsPage.py deleted file mode 100644 index acf0bb5bfec7..000000000000 --- a/gui/mappingsPage.py +++ /dev/null @@ -1,60 +0,0 @@ -## mappingsPage.py - show selinux mappings -## Copyright (C) 2006 Red Hat, Inc. - -## This program is free software; you can redistribute it and/or modify -## it under the terms of the GNU General Public License as published by -## the Free Software Foundation; either version 2 of the License, or -## (at your option) any later version. - -## This program is distributed in the hope that it will be useful, -## but WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -## GNU General Public License for more details. - -## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -## Author: Dan Walsh -import string -import gtk -import gtk.glade -import os -import gobject -import sys -import seobject - -## -## I18N -## -PROGNAME = "policycoreutils" -try: - import gettext - kwargs = {} - if sys.version_info < (3,): - kwargs['unicode'] = True - gettext.install(PROGNAME, - localedir="/usr/share/locale", - codeset='utf-8', - **kwargs) -except: - try: - import builtins - builtins.__dict__['_'] = str - except ImportError: - import __builtin__ - __builtin__.__dict__['_'] = unicode - - -class loginsPage: - - def __init__(self, xml): - self.xml = xml - self.view = xml.get_widget("mappingsView") - self.store = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING) - self.store.set_sort_column_id(0, gtk.SORT_ASCENDING) - self.view.set_model(self.store) - self.login = loginRecords() - dict = self.login.get_all(0) - for k in sorted(dict.keys()): - print("%-25s %-25s %-25s" % (k, dict[k][0], translate(dict[k][1])))