Changeset 21fdee9dd56a33723c27045a7bd2eaf6607de7d7

Show
Ignore:
Timestamp:
07/19/10 13:22:44 (2 months ago)
Author:
Chris PeBenito <cpebenito@tresys.com>
Committer:
Chris PeBenito <cpebenito@tresys.com> 1279563764 -0400
Parent:

[29f3bfa464fee4f777758e7860b4a773236cbc36]

Message:

Increase bindreservport range to 512-1024 in corenetwork, from Dan Walsh.

We went back and reread the bindreservport code in glibc.

Turns out the range or ports that this will reserve are 512-1024 rather
then 600-1024.

The code actually first tries to reserve a port from 600-1024 and if
they are ALL reserved will try 512-599.

So we need to change corenetwork to reflect this.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Changelog

    r29f3bfa r21fdee9  
     1- Increase bindreservport range to 512-1024 in corenetwork, from Dan Walsh. 
    12- Add JIT usage for freshclam. 
    23- Remove ethereal module since the application was renamed to wireshark. 
  • policy/modules/kernel/corenetwork.te.in

    r48f99a8 r21fdee9  
    1 policy_module(corenetwork, 1.14.0
     1policy_module(corenetwork, 1.14.1
    22 
    33######################################## 
     
    5555 
    5656# 
    57 # hi_reserved_port_t is the type of INET port numbers between 600-1023. 
     57# hi_reserved_port_t is the type of INET port numbers between 512-1023. 
    5858# 
    5959type hi_reserved_port_t, port_type, reserved_port_type, rpc_port_type; 
     
    218218# these entries just cover any remaining reserved ports not otherwise declared. 
    219219 
    220 portcon tcp 600-1023 gen_context(system_u:object_r:hi_reserved_port_t, s0) 
    221 portcon udp 600-1023 gen_context(system_u:object_r:hi_reserved_port_t, s0) 
    222 portcon tcp 1-599 gen_context(system_u:object_r:reserved_port_t, s0) 
    223 portcon udp 1-599 gen_context(system_u:object_r:reserved_port_t, s0) 
     220portcon tcp 512-1023 gen_context(system_u:object_r:hi_reserved_port_t, s0) 
     221portcon udp 512-1023 gen_context(system_u:object_r:hi_reserved_port_t, s0) 
     222portcon tcp 1-511 gen_context(system_u:object_r:reserved_port_t, s0) 
     223portcon udp 1-511 gen_context(system_u:object_r:reserved_port_t, s0) 
    224224 
    225225######################################## 
  • policy/modules/kernel/corenetwork.te.m4

    r3829eec r21fdee9  
    7878') 
    7979 
    80 # bindresvport in glibc starts searching for reserved ports at 600 
     80# bindresvport in glibc starts searching for reserved ports at 512 
    8181define(`declare_ports',`dnl 
    8282ifelse(eval(range_start($3) < 1024),1,`typeattribute $1 reserved_port_type; 
    83 ifelse(eval(range_start($3) >= 600),1,`typeattribute $1 rpc_port_type;',`dnl') 
     83ifelse(eval(range_start($3) >= 512),1,`typeattribute $1 rpc_port_type;',`dnl') 
    8484',`dnl') 
    8585portcon $2 $3 gen_context(system_u:object_r:$1,$4)