Skip to contentSkip to conversation

Added a patch so third party policy makers can identify ports as port_types

DISCUSSION Christopher J. PeBenito 1 participant 1 message Apr 10, 2007 1 message not in the archive SELinux security module

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 50 lines · Daniel J Walsh
policy/modules/kernel/corenetwork.if.in 2007-03-22 15:06:58.000000000 -0400 renamed from policy/modules/kernel/corenetwork.if.in 2007-02-19 11:32:51.000000000 -0500 +44 -0
@@ -1977,3 +1977,57 @@
 
        typeattribute $1 corenet_unconfined_type;
 ')
+
+########################################
+## <summary>
+##     Define type to be a network port type
+## </summary>
+## <param name="domain">
+##     <summary>
+##     Type to be used for network ports.
+##     </summary>
+## </param>
+#
+interface(`corenet_port_type',`
+       gen_require(`
+               attribute port_type;
+       ')
+
+       typeattribute $1 port_type;
+')
+
+########################################
+## <summary>
+##     Define network type to be a reserved port (lt 1024) 
+## </summary>
+## <param name="domain">
+##     <summary>
+##     Type to be used for network ports.
+##     </summary>
+## </param>
+#
+interface(`corenet_reserved_port_type',`
+       gen_require(`
+               attribute reserved_port_type;
+       ')
+
+       typeattribute $1 reserved_port_type;
+')
+
+########################################
+## <summary>
+##     Define network type to be a rpc port ( 512 lt PORT lt 1024) 
+## </summary>
+## <param name="domain">
+##     <summary>
+##     Type to be used for network ports.

policy/modules/kernel/corenetwork.if.in 2007-03-22 15:06:58.000000000 -0400 line 2033

Quoted 10 lines
policy/modules/kernel/corenetwork.if.in 2007-03-22 15:06:58.000000000 -0400 renamed from policy/modules/kernel/corenetwork.if.in 2007-02-19 11:32:51.000000000 -0500 +10 -0
+##     </summary>
+## </param>
+#
+interface(`corenet_rpc_port_type',`
+       gen_require(`
+               attribute rpc_port_type;
+       ')
+
+       typeattribute $1 rpc_port_type;
+')

Merged, but dropped _type out of the interface names.

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.