policycoreutils: semanage: list reserver_port_t
diff mbox

Message ID 1451896444-29665-1-git-send-email-plautrba@redhat.com
State Accepted
Headers show

Commit Message

Petr Lautrbach Jan. 4, 2016, 8:34 a.m. UTC
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(-)

Comments

Joshua Brindle Jan. 4, 2016, 2:13 p.m. UTC | #1
Petr Lautrbach wrote:
> 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>

Thanks, applied.

> ---
>   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)

Patch
diff mbox

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)