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 <qingtao.cao@windriver.com>
This commit is contained in:
Harry Ciao 2011-06-23 10:53:44 +08:00 committed by Chris PeBenito
parent ccf8bdea90
commit 321f22231e

View File

@ -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(`