Skip to contentSkip to conversation

Port name for port 8200

refpolicy Sven Vermeulen 2 participants 2 messages Apr 28, 2013

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 7 lines · Sven Vermeulen

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".

Quoted 6 lines

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

Quoted 6 lines

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