Re: Confining Java application with SELinux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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@xxxxxxxxx> 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@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux