From patchwork Wed Aug 10 08:39:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miroslav Vadkerti X-Patchwork-Id: 9272827 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 A804160231 for ; Wed, 10 Aug 2016 08:42:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95D452838E for ; Wed, 10 Aug 2016 08:42:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A3C528375; Wed, 10 Aug 2016 08:42:17 +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.9 required=2.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received: from emsm-gh1-uea10.nsa.gov (emsm-gh1-uea10.nsa.gov [8.44.101.8]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C225028375 for ; Wed, 10 Aug 2016 08:42:15 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.28,498,1464652800"; d="scan'208";a="16449526" IronPort-PHdr: =?us-ascii?q?9a23=3AeKVP4BD22nLNBHpR3VxlUyQJP3N1i/DPJgcQr6Af?= =?us-ascii?q?oPdwSP78oMbcNUDSrc9gkEXOFd2CrakV0qyO6Ou4AyRAuc/H6yFaNsQUFlcsso?= =?us-ascii?q?Y/p0QYGsmLCEn2frbBThcRO4B8bmJj5GyxKkNPGczzNBX4q3y26iMOSF2kbVIm?= =?us-ascii?q?btr8FoOatcmrzef6o8SVOFQRwmLmKusoZFXu9EOK55FQ2dMjYo8KiTLx6kNSfO?= =?us-ascii?q?pXwW46bXmypD3bovmKwZh47i5LsOgg/cMTGY/zfqA/UKAKRG9+azN92dfv/SXn?= =?us-ascii?q?YUPPoyJEEzZerh0dGAXB7RfnTr/toyD6sax7wyDcMsroHp4uXjH3yqZxTwTsgT?= =?us-ascii?q?lPCTc182zNls042KdFqR6iqgZj65TZbIGcKLx1eaaLLoBSfnZIQssED38JOYi7?= =?us-ascii?q?dYZaSrNZMA=3D=3D?= X-IPAS-Result: =?us-ascii?q?A2GuCgCE56pX/wHyM5BdHQGDJ1Z8pycBk3geA4F2hWVMAQE?= =?us-ascii?q?BAQEBAgJaJ4IyBAMRfVtEAjcUIA4DCQIXKQgIAwEpBBUfCwUYBIgQwVElhiqGF?= =?us-ascii?q?4JIEQFohQ8FmTyGHYh1AoI3hzOFVQKQLFSDfGyFdoE2AQEB?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea10.nsa.gov with ESMTP; 10 Aug 2016 08:42:12 +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 u7A8dLkZ031093; Wed, 10 Aug 2016 04:39:32 -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 u7A8dJpS103184 for ; Wed, 10 Aug 2016 04:39:19 -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 u7A8dJhh031090 for ; Wed, 10 Aug 2016 04:39:19 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1CoAADB56pXhxy3hNFdhBt8pgCCAgGPFoQMFAiGAYFaTAEBAQEBARMBAQEKCwkJGYYNgQ5DiDHBdoYqhheDQoUPBZk8hh2IdQKCN40IApAsghUBYYFZOjKHLAEBAQ X-IPAS-Result: A1CoAADB56pXhxy3hNFdhBt8pgCCAgGPFoQMFAiGAYFaTAEBAQEBARMBAQEKCwkJGYYNgQ5DiDHBdoYqhheDQoUPBZk8hh2IdQKCN40IApAsghUBYYFZOjKHLAEBAQ X-IronPort-AV: E=Sophos;i="5.28,498,1464667200"; d="scan'208";a="5635565" 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; 10 Aug 2016 04:39:15 -0400 IronPort-PHdr: =?us-ascii?q?9a23=3ADLGWZhwmVLxVpWLXCy+O+j09IxM/srCxBDY+r6Qd?= =?us-ascii?q?0ewUIJqq85mqBkHD//Il1AaPBtSCraofwLKM++C4ACpbsM7H6ChDOLV3FDY9wf?= =?us-ascii?q?0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5?= =?us-ascii?q?K6zPF5LIiIzvjqbpqsSVO14D3GD1Iesrak7n9UOJ7oheqLAhA5558gHOrHpMdr?= =?us-ascii?q?Ye7kJTDnXXoSzB4Nyt9oVo6SVatqFp3cdBVaLnY/ZwFuQAX3x1e1wysdbmsRjF?= =?us-ascii?q?UBun+moXUmJQlAFBRQfC8kLURJD05w77rO1m3CCEdfP/QbM5Qyijp/NuVhbkiy?= =?us-ascii?q?odKxYj/W3Xg9A2h6Ve9kHy7ydjypLZNdnGfMF1ebnQKIsX?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0F6AQBQ56pXhxy3hNFdMINrfKYAgShaA?= =?us-ascii?q?Y8WhAwUCIF2hAuBWkwBAQEBAQECAg8BAQEKCwkJGS+CMhZ/W4E8gQ5DiDHBdYY?= =?us-ascii?q?qhheDQoUPBZk8hh2IdQKCN40IApAsgneBWToyhywBAQE?= X-IPAS-Result: =?us-ascii?q?A0F6AQBQ56pXhxy3hNFdMINrfKYAgShaAY8WhAwUCIF2hAu?= =?us-ascii?q?BWkwBAQEBAQECAg8BAQEKCwkJGS+CMhZ/W4E8gQ5DiDHBdYYqhheDQoUPBZk8h?= =?us-ascii?q?h2IdQKCN40IApAsgneBWToyhywBAQE?= X-IronPort-AV: E=Sophos;i="5.28,498,1464652800"; d="scan'208";a="18352777" Received: from mx1.redhat.com ([209.132.183.28]) by emsm-gh1-uea11.nsa.gov with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Aug 2016 08:39:14 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 11D7AC0586CA for ; Wed, 10 Aug 2016 08:39:14 +0000 (UTC) Received: from crude.brq.redhat.com (crude.brq.redhat.com [10.34.24.82]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u7A8dCgq002226; Wed, 10 Aug 2016 04:39:13 -0400 From: Miroslav Vadkerti To: selinux@tycho.nsa.gov Subject: [PATCH] semanage: swap tcp and udp protocol numbers Date: Wed, 10 Aug 2016 10:39:10 +0200 Message-Id: <1470818350-3637-1-git-send-email-mvadkert@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 10 Aug 2016 08:39:14 +0000 (UTC) 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-Virus-Scanned: ClamAV using ClamSMTP The tcp/udp protocol numbers were accidentaly swapped in the original patch 'semanage: add auditing of changes in records'. Signed-off-by: Miroslav Vadkerti --- policycoreutils/semanage/seobject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/policycoreutils/semanage/seobject.py b/policycoreutils/semanage/seobject.py index 317b421..786ed0e 100644 --- a/policycoreutils/semanage/seobject.py +++ b/policycoreutils/semanage/seobject.py @@ -88,8 +88,8 @@ file_type_str_to_option = {"all files": "a", "symbolic link": "l", "named pipe": "p"} -proto_to_audit = {"tcp": 17, - "udp": 6, +proto_to_audit = {"tcp": 6, + "udp": 17, "ipv4": 4, "ipv6": 41}