From 321f22231e58d4776be3723f193fe61bc8c8025f Mon Sep 17 00:00:00 2001 From: Harry Ciao Date: Thu, 23 Jun 2011 10:53:44 +0800 Subject: [PATCH] Fix the call to mozilla_run_plugin. When mozilla_role interface is called, 1st argument is the caller's role and 2nd argument is the caller's domain, such as: mozilla_role(staff_r, staff_t) When mozilla_role calls mozilla_run_plugin, the passed 2nd argument should be the caller's role rather than its domain, so $1 not $2 should be used. Signed-off-by: Harry Ciao --- policy/modules/apps/mozilla.if | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policy/modules/apps/mozilla.if b/policy/modules/apps/mozilla.if index ec2236c4c..fbb5c5aaf 100644 --- a/policy/modules/apps/mozilla.if +++ b/policy/modules/apps/mozilla.if @@ -46,7 +46,7 @@ interface(`mozilla_role',` relabel_files_pattern($2, mozilla_home_t, mozilla_home_t) relabel_lnk_files_pattern($2, mozilla_home_t, mozilla_home_t) - mozilla_run_plugin(mozilla_t, $2) + mozilla_run_plugin(mozilla_t, $1) mozilla_dbus_chat($2) optional_policy(`