Skip to contentSkip to conversation

Additions to net_contexts

PATCH Applied David Hampton 2 participants 2 messages Mar 16, 2005 – Apr 5, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

Here are some additions to net_contexts to define additional privileged ports. I'll be submitting policies that reference these ports over the next week or so as I get them cleaned up. This is based on the file from the selinux-policy-strict-sources-1.22.1-2 rpm on my FC3 system.

David

Index: net_contexts
===================================================================
RCS file: /home/cvs/starfury/etc/selinux/strict/src/policy/net_contexts,v retrieving revision 1.1

net_contexts +21 -0
diff -u -r1.1 net_contexts
@@ -226,6 +226,27 @@
 ')
 ifdef(`postgrey.te', `portcon tcp 60000 system_u:object_r:postgrey_port_t')
 
+ifdef(`amavis.te', `
+portcon tcp 10024 system_u:object_r:amavisd_recv_port_t
+portcon tcp 10025 system_u:object_r:amavisd_send_port_t
+')
+ifdef(`clamav.te', `
+portcon tcp 3310 system_u:object_r:clamd_port_t
+')
+ifdef(`dcc.te', `
+portcon udp 6276 system_u:object_r:dcc_port_t
+portcon udp 6277 system_u:object_r:dcc_port_t
+')
+ifdef(`pyzor.te', `
+portcon udp 24441 system_u:object_r:pyzor_port_t
+')
+ifdef(`razor.te', `
+portcon tcp 2703 system_u:object_r:razor_port_t
+')
+ifdef(`zope.te', `
+portcon tcp 8021 system_u:object_r:zope_port_t
+')
+
 # Defaults for reserved ports.  Earlier portcon entries take precedence;
 # these entries just cover any remaining reserved ports not otherwise 
 # declared or omitted due to removal of a domain.
Applied
#1 lore raw

Merged into the SELinux policy CVS tree at sourceforge.

Quoted 7 lines · David Hampton

Here are some additions to net_contexts to define additional privileged ports. I'll be submitting policies that reference these ports over the next week or so as I get them cleaned up. This is based on the file from the selinux-policy-strict-sources-1.22.1-2 rpm on my FC3 system.

David

Signature · 8 lines
James Carter <[email protected]>
National Security Agency


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