From: Daniel J Walsh <dwalsh@redhat.com>
To: Shaz <shazalive@gmail.com>
Cc: mohit verma <mohit89mlnc@gmail.com>, selinux <selinux@tycho.nsa.gov>
Subject: Re: Confining Java application with SELinux
Date: Tue, 26 Oct 2010 08:31:43 -0400 [thread overview]
Message-ID: <4CC6CA2F.6010605@redhat.com> (raw)
In-Reply-To: <AANLkTinZAT8b-qCfvwZ9iO4z1StXTGSjXWvth0gag7AW@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/25/2010 07:20 PM, Shaz wrote:
> On Mon, Oct 25, 2010 at 11:14 PM, mohit verma <mohit89mlnc@gmail.com> wrote:
>
>> shaz ,will u please explain ur idea in more detail?
>>
>>
> I want to confine a Java application with SELinux policy so I wanted to know
> how I can really do that. Will the application be visible to the native
> platform with SELinux? Or only the Java VM is visible and that we use Java
> ACL to confine the application inside the VM?
>
> Thanks.
>
I am not quite sure of the nomenclature here, but you can confine the
entire java process, as long was you wrap the startup script.
cat /usr/bin/myjavaapp
#!/usr/bin/sh
java -class myjavaapp.jar
chcon -t myjavaapp_exec_t /usr/bin/myjavaapp
...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkzGyi8ACgkQrlYvE4MpobNdVwCfewWGUpTyTTLqscOOPdB/QE/I
1dwAoOAw1FMLTQm+mvfzzMSKTZcZX79o
=y9Qg
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
prev parent reply other threads:[~2010-10-26 12:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-25 10:13 Confining Java application with SELinux Shaz
2010-10-25 18:14 ` mohit verma
2010-10-25 23:20 ` Shaz
2010-10-26 12:30 ` Christopher J. PeBenito
2010-10-26 12:31 ` Daniel J Walsh [this message]
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=4CC6CA2F.6010605@redhat.com \
--to=dwalsh@redhat.com \
--cc=mohit89mlnc@gmail.com \
--cc=selinux@tycho.nsa.gov \
--cc=shazalive@gmail.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.