All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Lautrbach <plautrba@redhat.com>
To: selinux@tycho.nsa.gov
Subject: [PATCH] policycoreutils: semanage: list reserver_port_t
Date: Mon,  4 Jan 2016 09:34:04 +0100	[thread overview]
Message-ID: <1451896444-29665-1-git-send-email-plautrba@redhat.com> (raw)

reserver_port_t was omitted in 'semanage port -l'. There seems to be no
reason for that nowadays therefore we can list it.

Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1225806

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
---
 policycoreutils/semanage/seobject.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/policycoreutils/semanage/seobject.py b/policycoreutils/semanage/seobject.py
index c52be75..3b0b108 100644
--- a/policycoreutils/semanage/seobject.py
+++ b/policycoreutils/semanage/seobject.py
@@ -1216,8 +1216,6 @@ class portRecords(semanageRecords):
         for port in self.plist:
             con = semanage_port_get_con(port)
             ctype = semanage_context_get_type(con)
-            if ctype == "reserved_port_t":
-                continue
             level = semanage_context_get_mls(con)
             proto = semanage_port_get_proto(port)
             proto_str = semanage_port_get_proto_str(proto)
@@ -1238,8 +1236,6 @@ class portRecords(semanageRecords):
         for port in self.plist:
             con = semanage_port_get_con(port)
             ctype = semanage_context_get_type(con)
-            if ctype == "reserved_port_t":
-                continue
             proto = semanage_port_get_proto(port)
             proto_str = semanage_port_get_proto_str(proto)
             low = semanage_port_get_low(port)
-- 
2.6.4

             reply	other threads:[~2016-01-04  8:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-04  8:34 Petr Lautrbach [this message]
2016-01-04 14:13 ` [PATCH] policycoreutils: semanage: list reserver_port_t Joshua Brindle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1451896444-29665-1-git-send-email-plautrba@redhat.com \
    --to=plautrba@redhat.com \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.