2013-04-28 08:35:52

by sven.vermeulen

[permalink] [raw]
Subject: [refpolicy] Port name for port 8200

Hi all

I'm writing a policy for minidlna (I'll submit it soon for review) and
noticed that it needs to bind on tcp port 8200. Currently, this port is not
named (thus marked as unreserved_port_t). Most port databases have it
assigned as "trivnet1".

What is the best approach to take here? Have corenetwork mark the port as
trivnet1_port_t and use the corenet_*_trivnet1 methods, or keep it as
unreserved? Or do assign it but name it differently?

I prefer the first (i.e. define trivnet1_port_t).

Wkr,
Sven Vermeulen


2013-04-28 19:59:30

by dominick.grift

[permalink] [raw]
Subject: [refpolicy] Port name for port 8200

On Sun, 2013-04-28 at 10:35 +0200, Sven Vermeulen wrote:
> Hi all
>
> I'm writing a policy for minidlna (I'll submit it soon for review) and
> noticed that it needs to bind on tcp port 8200. Currently, this port is not
> named (thus marked as unreserved_port_t). Most port databases have it
> assigned as "trivnet1".
>
> What is the best approach to take here? Have corenetwork mark the port as
> trivnet1_port_t and use the corenet_*_trivnet1 methods, or keep it as
> unreserved? Or do assign it but name it differently?
>
> I prefer the first (i.e. define trivnet1_port_t).
>

grep -i 8200 /etc/services
trivnet1 8200/tcp # TRIVNET
trivnet1 8200/udp # TRIVNET

yes should be declared trivnet1_port_t

> Wkr,
> Sven Vermeulen
> _______________________________________________
> refpolicy mailing list
> refpolicy at oss.tresys.com
> http://oss.tresys.com/mailman/listinfo/refpolicy