commit:     1c9f2085432c1add2a1bfc318f39cd74ef86c2ac
Author:     Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be>
AuthorDate: Wed Mar  4 15:33:34 2015 +0000
Commit:     Sven Vermeulen <swift <AT> gentoo <DOT> org>
CommitDate: Wed Mar  4 15:33:34 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=1c9f2085

Allow rtorrent to bind to tcp port 6926

Two fixes in one row:
  1. Add in TCP definition for rtorrent port (was already assumed but
     not formalized)
  2. Add in TCP:6926 as an rtorrent_port_t as well

X-Gentoo-Bug: 541804
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=541804

 policy/modules/kernel/corenetwork.te.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/policy/modules/kernel/corenetwork.te.in 
b/policy/modules/kernel/corenetwork.te.in
index 104e7f5..70f4ee8 100644
--- a/policy/modules/kernel/corenetwork.te.in
+++ b/policy/modules/kernel/corenetwork.te.in
@@ -236,7 +236,7 @@ network_port(rndc, tcp,953,s0, udp,953,s0)
 network_port(router, udp,520,s0, udp,521,s0, tcp,521,s0)
 network_port(rsh, tcp,514,s0)
 network_port(rsync, tcp,873,s0, udp,873,s0)
-network_port(rtorrent, udp, 6881, s0)
+network_port(rtorrent, tcp,6881,s0, udp,6881,s0, tcp,6926,s0)
 network_port(rtsp, tcp,554,s0, udp,554,s0)
 network_port(rwho, udp,513,s0)
 network_port(salt, tcp,4505,s0, tcp,4506,s0)

Reply via email to