From: dwalsh@redhat.com (Daniel J Walsh)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] SELinux policy for Hadoop
Date: Mon, 13 Feb 2012 16:44:29 -0500 [thread overview]
Message-ID: <4F39843D.70202@redhat.com> (raw)
In-Reply-To: <000301ccea96$289502f0$79bf08d0$@edu>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/13/2012 04:26 PM, Jean Khosalim wrote:
> Hi Daniel,
>
> Thank you for responding. To try your suggestion, I did the
> following: 1. First stop all the services: service
> hadoop-0.20-datanode stop service hadoop-0.20-namenode stop service
> hadoop-0.20-secondarynamenode stop service hadoop-0.20-jobtracker
> stop service hadoop-0.20-tasktracker stop (Make sure all Hadoop
> processes are stopped. And ps no longer show them). 2. Modified
> /usr/lib/hadoop-0.20/conf/hadoop-env.sh, by adding the following
> lines: export HADOOP_DATANODE_USER=hdfs export
> HADOOP_NAMENODE_USER=hdfs export
> HADOOP_SECONDARYNAMENODE_USER=hdfs export
> HADOOP_JOBTRACKER_USER=mapred export
> HADOOP_TASKTRACKER_USER=mapred 3. Start the Hadoop processes
> manually: /usr/lib/hadoop-0.20/bin/start-all.sh
>
> But the result of the ps output is still the same, i.e., running
> with unconfined_java_t.
>
> Is this what you meant by "a shell script that would execute the
> java for each different user" method?
>
> I am trying to figure how to use runcon (what arguments to use).
>
> Thanks, Jean Khosalim
>
The problem is haddoop-0.20-jobtracker is executing java --class. So
no transition happens.
If hadoop-0.20-jobtracker executing /usr/bin/hadoop-jobtracker which
had java --class within it, then we could label
/usr/bin/hadoop-jobtracker hadoop_exec_t, and the transitions would
happen.
Alternatively you could attempt
runcon -t hadpoop_t -- java --class ...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk85hDoACgkQrlYvE4MpobPB7wCfdD0woHw+DrSAqQCtlr4tIkxy
B8wAn1JtWhsQNhGNWo5XwFfW7dQgPRDV
=U4PI
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2012-02-13 21:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2012-02-13 22:25 ` Jean Khosalim
2012-02-14 14:25 ` Daniel J Walsh
2012-02-14 16:24 ` Jean Khosalim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F39843D.70202@redhat.com \
--to=dwalsh@redhat.com \
--cc=refpolicy@oss.tresys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.