All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] SELinux policy for Hadoop
@ 2012-02-08 19:29 Jean Khosalim
  2012-02-08 19:46 ` Christopher J. PeBenito
  0 siblings, 1 reply; 13+ messages in thread
From: Jean Khosalim @ 2012-02-08 19:29 UTC (permalink / raw)
  To: refpolicy

Hi all,

 

I built a Fedora 16 system and installed Cloudera's CDH3 (with Hadoop-0.20).
SElinux is enforcing and policy used is 'targeted'. Ran a simple wordcount
example and it works. But I noticed that the Hadoop related processes are
running with 'system_u:system_r:initrc_t:s0'. I was expecting hadoop_t
instead of initrc_t. I also noticed that there is no 'hadoop.pp' in
/etc/selinux/targeted/modules/active/modules directory.

 

I ran 'yum update' on the system and force autorelabel on boot (add
'enforcing=0 autorelabel' to grub). After reboot, it looks like nothing
changed, i.e., Hadoop related processes still run with
'system_u:system_r:initrc_t:s0' and there is no 'hadoop.pp' in
/etc/selinux/targeted/modules/active/modules directory.

 

Then I downloaded the source rpm for selinux-policy-3.10.0-75.fc16.src.rpm.
Looking at the source files, I noticed that modules_targeted.conf doesn't
have 'hadoop'. I modified the file to add in 'hadoop' and ran 'rpmbuild -ba
./rpmbuild/SPECS/selinux-policy.spec' which generated a new set of rpm. I
did a force rpm install of the newly created
selinux-policy-3.10.0-75.fc16.noarch.rpm and
selinux-policy-targeted-3.10.0-75.fc16.noarch.rpm. Then I rebooted the
system.

 

After the reboot, I now see 'hadoop.pp' IS in
/etc/selinux/targeted/modules/active/modules directory and the hadoop
related processes are now running with
'system_u:system_r:unconfined_java_t:s0'. Is my expectation that the hadoop
related processes will run as 'hadoop_t' incorrect? Are there any steps that
I am missing?

 

Any help will be much appreciated. Thank you in advance.

 

Sincerely,

Jean Khosalim

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20120208/cc365404/attachment.html 

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-02-14 16:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-08 19:29 [refpolicy] SELinux policy for Hadoop Jean Khosalim
2012-02-08 19:46 ` Christopher J. PeBenito
2012-02-08 20:33   ` Jean Khosalim
2012-02-08 20:40     ` Daniel J Walsh
2012-02-08 21:00       ` Jean Khosalim
2012-02-09 19:02         ` Daniel J Walsh
2012-02-09 19:30           ` Jean Khosalim
2012-02-09 21:59             ` Daniel J Walsh
2012-02-13 21:26               ` Jean Khosalim
2012-02-13 21:44                 ` Daniel J Walsh
2012-02-13 22:25                   ` Jean Khosalim
2012-02-14 14:25                     ` Daniel J Walsh
2012-02-14 16:24                       ` Jean Khosalim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.