hadoop 1/10 -- unconfined
PATCH 1/1 hadoop 1/10 -- unconfined
I tried to clean up the latest revision a bit. There are also a few things that leave me wondering. Most of which i commented.
My take on hadoop.
Signed-off-by Dominick Grift <[email protected]>
---
:100644 100644 2ecdde8... 73163db... M policy/modules/kernel/corenetwork.te.in
:100644 100644 cad05ff... d2bc2b1... M policy/modules/roles/sysadm.te
:000000 100644 0000000... 5935162... A policy/modules/services/hadoop.fc
:000000 100644 0000000... 69519f0... A policy/modules/services/hadoop.if
:000000 100644 0000000... 6a79d31... A policy/modules/services/hadoop.te
:100644 100644 f976344... f1e6c9f... M policy/modules/system/unconfined.te
policy/modules/kernel/corenetwork.te.in | 5 + policy/modules/roles/sysadm.te | 8 + policy/modules/services/hadoop.fc | 55 ++++ policy/modules/services/hadoop.if | 358 +++++++++++++++++++++++++++ policy/modules/services/hadoop.te | 411 +++++++++++++++++++++++++++++++ policy/modules/system/unconfined.te | 8 + 6 files changed, 845 insertions(+), 0 deletions(-)
policy/modules/kernel/corenetwork.te.in +5 -0
@@ -105,6 +105,8 @@ network_port(giftd, tcp,1213,s0) network_port(git, tcp,9418,s0, udp,9418,s0) network_port(gopher, tcp,70,s0, udp,70,s0) network_port(gpsd, tcp,2947,s0) +network_port(hadoop_datanode, tcp, 50010,s0) +network_port(hadoop_namenode, tcp, 8020,s0) network_port(hddtemp, tcp,7634,s0) network_port(howl, tcp,5335,s0, udp,5353,s0) network_port(hplip, tcp,1782,s0, tcp,2207,s0, tcp,2208,s0, tcp, 8290,s0, tcp,50000,s0, tcp,50002,s0, tcp,8292,s0, tcp,9100,s0, tcp,9101,s0, tcp,9102,s0, tcp,9220,s0, tcp,9221,s0, tcp,9222,s0, tcp,9280,s0, tcp,9281,s0, tcp,9282,s0, tcp,9290,s0, tcp,9291,s0, tcp,9292,s0)
@@ -211,6 +213,9 @@ network_port(xdmcp, udp,177,s0, tcp,177,s0) network_port(xen, tcp,8002,s0) network_port(xfs, tcp,7100,s0) network_port(xserver, tcp,6000-6020,s0) +network_port(zookeeper_client, tcp, 2181,s0) +network_port(zookeeper_election, tcp, 3888,s0) +network_port(zookeeper_leader, tcp, 2888,s0) network_port(zebra, tcp,2600-2604,s0, tcp,2606,s0, udp,2600-2604,s0, udp,2606,s0) network_port(zope, tcp,8021,s0)
policy/modules/roles/sysadm.te +8 -0
@@ -152,6 +152,10 @@ optional_policy(` ') optional_policy(` + hadoop_run(sysadm_t, sysadm_r) +') + +optional_policy(` # allow system administrator to use the ipsec script to look # at things (e.g., ipsec auto --status) # probably should create an ipsec_admin role for this kind of thing
@@ -392,6 +396,10 @@ optional_policy(` yam_run(sysadm_t, sysadm_r) ') +optional_policy(` + hadoop_zookeeper_run_client(sysadm_t, sysadm_r) +') + ifndef(`distro_redhat',` optional_policy(` auth_role(sysadm_r, sysadm_t)
policy/modules/services/hadoop.fc new file +55 -0
55 lines not on this page · raw message
policy/modules/services/hadoop.if new file +358 -0
358 lines not on this page · raw message
policy/modules/services/hadoop.te new file +411 -0
411 lines not on this page · raw message
policy/modules/system/unconfined.te +8 -0
@@ -118,6 +118,10 @@ optional_policy(` ') optional_policy(` + hadoop_run(unconfined_t, unconfined_r) +') + +optional_policy(` inn_domtrans(unconfined_t) ')
@@ -210,6 +214,10 @@ optional_policy(` xserver_domtrans(unconfined_t) ') +optional_policy(` + hadoop_zookeeper_run_client(unconfined_t, unconfined_r) +') + ######################################## # # Unconfined Execmem Local policy
Signature · 9 lines
1.7.2.3 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: not available Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20101006/8a1f9c21/attachment-0001.bin