From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from jazzdrum.ncsc.mil (zombie.ncsc.mil [144.51.88.131]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with SMTP id l2NKcB3M010096 for ; Fri, 23 Mar 2007 16:38:11 -0400 Received: from mx1.redhat.com (jazzdrum.ncsc.mil [144.51.5.7]) by jazzdrum.ncsc.mil (8.12.10/8.12.10) with ESMTP id l2NKc9sr023767 for ; Fri, 23 Mar 2007 20:38:10 GMT Message-ID: <46043AAC.60406@redhat.com> Date: Fri, 23 Mar 2007 16:38:04 -0400 From: Daniel J Walsh MIME-Version: 1.0 To: "Christopher J. PeBenito" , SE Linux Subject: Added a patch so third party policy makers can identify ports as port_types Content-Type: multipart/mixed; boundary="------------090801050309090907070602" Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov This is a multi-part message in MIME format. --------------090801050309090907070602 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------090801050309090907070602 Content-Type: text/x-patch; name="corenet_port_type.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="corenet_port_type.patch" --- nsaserefpolicy/policy/modules/kernel/corenetwork.if.in 2007-02-19 11:32:51.000000000 -0500 +++ serefpolicy-2.5.10/policy/modules/kernel/corenetwork.if.in 2007-03-22 15:06:58.000000000 -0400 @@ -1977,3 +1977,57 @@ typeattribute $1 corenet_unconfined_type; ') + +######################################## +## +## Define type to be a network port type +## +## +## +## Type to be used for network ports. +## +## +# +interface(`corenet_port_type',` + gen_require(` + attribute port_type; + ') + + typeattribute $1 port_type; +') + +######################################## +## +## Define network type to be a reserved port (lt 1024) +## +## +## +## Type to be used for network ports. +## +## +# +interface(`corenet_reserved_port_type',` + gen_require(` + attribute reserved_port_type; + ') + + typeattribute $1 reserved_port_type; +') + +######################################## +## +## Define network type to be a rpc port ( 512 lt PORT lt 1024) +## +## +## +## Type to be used for network ports. +## +## +# +interface(`corenet_rpc_port_type',` + gen_require(` + attribute rpc_port_type; + ') + + typeattribute $1 rpc_port_type; +') --------------090801050309090907070602-- -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.