Research
.
Skip Search Box

SELinux Mailing List

apps_java changes

From: dwalsh_at_redhat.com
Date: Wed, 30 May 2007 11:41:46 -0400


Allow apps writers to write transition rules when executing java

--- nsaserefpolicy/policy/modules/apps/java.if	2007-05-29 14:10:48.000000000 -0400

+++ serefpolicy-3.0.1/policy/modules/apps/java.if 2007-05-30 09:25:53.000000000 -0400
@@ -220,3 +220,35 @@ corecmd_search_bin($1) domtrans_pattern($1, java_exec_t, java_t)
 ')
+
+########################################
+## <summary>
+## Execute a java in the specified domain
+## </summary>
+## <desc>
+## <p>
+## Execute the java command in the specified domain. This allows
+## the specified domain to execute any file
+## on these filesystems in the specified
+## domain.
+## </p>
+## </desc>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+## <param name="target_domain">
+## <summary>
+## The type of the new process.
+## </summary>
+## </param>
+#
+interface(`java_spec_domtrans',`
+ gen_require(`
+ type java_exec_t;
+ ')
+
+ domain_trans($1,java_exec_t,$2)
+ type_transition $1 java_exec_t:process $2;
+')
--
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.
Received on Wed 30 May 2007 - 13:37:01 EDT
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service