All of lore.kernel.org
 help / color / mirror / Atom feed
* Confining Java application with SELinux
@ 2010-10-25 10:13 Shaz
  2010-10-25 18:14 ` mohit verma
  0 siblings, 1 reply; 5+ messages in thread
From: Shaz @ 2010-10-25 10:13 UTC (permalink / raw)
  To: selinux

[-- Attachment #1: Type: text/plain, Size: 343 bytes --]

Dear all,

I have a use case where a Java application needs to be confined with
SELinux. What should I consider taking care of to achieve this?

Thanks.

-- 
Shahbaz Khan
Assist. R&D Engineer

http://shazkhan.wordpress.com/
http://pk.linkedin.com/pub/shahbaz-khan/20/116/b49
http://imsciences.edu.pk/serg/
http://csrdu.org/
+92-91-332-9915828

[-- Attachment #2: Type: text/html, Size: 662 bytes --]

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

* Re: Confining Java application with SELinux
  2010-10-25 10:13 Confining Java application with SELinux Shaz
@ 2010-10-25 18:14 ` mohit verma
  2010-10-25 23:20   ` Shaz
  0 siblings, 1 reply; 5+ messages in thread
From: mohit verma @ 2010-10-25 18:14 UTC (permalink / raw)
  To: Shaz; +Cc: selinux

[-- Attachment #1: Type: text/plain, Size: 540 bytes --]

shaz ,will u please explain ur idea in more detail?

On Mon, Oct 25, 2010 at 3:43 PM, Shaz <shazalive@gmail.com> wrote:

> Dear all,
>
> I have a use case where a Java application needs to be confined with
> SELinux. What should I consider taking care of to achieve this?
>
> Thanks.
>
> --
> Shahbaz Khan
> Assist. R&D Engineer
>
> http://shazkhan.wordpress.com/
> http://pk.linkedin.com/pub/shahbaz-khan/20/116/b49
> http://imsciences.edu.pk/serg/
> http://csrdu.org/
> +92-91-332-9915828
>
>


-- 
........................
*MOHIT VERMA*

[-- Attachment #2: Type: text/html, Size: 1100 bytes --]

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

* Re: Confining Java application with SELinux
  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
  0 siblings, 2 replies; 5+ messages in thread
From: Shaz @ 2010-10-25 23:20 UTC (permalink / raw)
  To: mohit verma; +Cc: selinux

[-- Attachment #1: Type: text/plain, Size: 605 bytes --]

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.

-- 
Shahbaz Khan
Assist. R&D Engineer

http://shazkhan.wordpress.com/
http://pk.linkedin.com/pub/shahbaz-khan/20/116/b49
http://imsciences.edu.pk/serg/
http://csrdu.org/
+92-91-332-9915828

[-- Attachment #2: Type: text/html, Size: 1223 bytes --]

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

* Re: Confining Java application with SELinux
  2010-10-25 23:20   ` Shaz
@ 2010-10-26 12:30     ` Christopher J. PeBenito
  2010-10-26 12:31     ` Daniel J Walsh
  1 sibling, 0 replies; 5+ messages in thread
From: Christopher J. PeBenito @ 2010-10-26 12:30 UTC (permalink / raw)
  To: Shaz; +Cc: mohit verma, selinux

On 10/25/10 19:20, Shaz wrote:
> 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?

You can only confine the JVM.  If there is more than one application in
the JVM, they will not be separable by SELinux.  So if you want
separation between two or more Java applications enforced by SELinux,
they would have to run in separate JVMs.


-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

--
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.

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

* Re: Confining Java application with SELinux
  2010-10-25 23:20   ` Shaz
  2010-10-26 12:30     ` Christopher J. PeBenito
@ 2010-10-26 12:31     ` Daniel J Walsh
  1 sibling, 0 replies; 5+ messages in thread
From: Daniel J Walsh @ 2010-10-26 12:31 UTC (permalink / raw)
  To: Shaz; +Cc: mohit verma, selinux

-----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.

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

end of thread, other threads:[~2010-10-26 12:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.