Skip to contentSkip to conversation

wm: properly set domain entrypoint in wm_application_domain()

PATCH New Guido Trentalancia 2 participants 2 messages Dec 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wm: properly set domain entrypoint in wm_application_domain()

The newly introduced wm_application_domain() interface can under certain circumstances lack a domain entrypoint permission.

This patch updates the wm module so that when the wm has to launch an application that uses wm_application_domain(), it can find the entrypoint to the application's domain.

---
 policy/modules/contrib/wm.if |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
policy/modules/contrib/wm.if +1 -3
@@ -216,8 +216,6 @@ interface(`wm_application_domain',`
 		attribute wm_domain;
 	')
 
-	application_type($1)
-	ubac_constrained($1)
-	application_executable_file($2)
+	userdom_user_application_domain($1, $2)
 	domtrans_pattern(wm_domain, $2, $1)
 ')
#1 lore raw

PATCH 1/1 wm: properly set domain entrypoint in wm_application_domain()

Quoted 15 lines · Guido Trentalancia via refpolicy

The newly introduced wm_application_domain() interface can under certain circumstances lack a domain entrypoint permission.

This patch updates the wm module so that when the wm has to launch an application that uses wm_application_domain(), it can find the entrypoint to the application's domain.

---
 policy/modules/contrib/wm.if |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

policy/modules/contrib/wm.if interface(`wm_application_domain',` · line 221

Quoted 9 lines
policy/modules/contrib/wm.if +1 -3
@@ -216,8 +216,6 @@ interface(`wm_application_domain',`
 		attribute wm_domain;
 	')
 
-	application_type($1)
-	ubac_constrained($1)
-	application_executable_file($2)
+	userdom_user_application_domain($1, $2)
 	domtrans_pattern(wm_domain, $2, $1)
 ')

Merged.

Signature · 1 line
Chris PeBenito