From: cpebenito@tresys.com (Christopher J. PeBenito) Date: Fri, 24 Jun 2011 09:05:35 -0400 Subject: [refpolicy] A mozilla_run_plugin bug In-Reply-To: References: Message-ID: <4E048B9F.2080702@tresys.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com On 06/22/11 23:20, HarryCiao wrote: > Hi Chris, > > If I make role-types rule no longer used to declare a role(but use the > newly added role-attr rule along with the role attribute support), I > seem to have found that when mozilla_role() calls mozilla_run_plugin(), > the 2nd argument is wrong, which would result below compile error: > > policy/modules/roles/staff.te":115:ERROR 'unknown role staff_t' at > token ';' > role staff_t types mozilla_plugin_t; > > Which could be simply fixed by the attached patch: > > - mozilla_run_plugin(mozilla_t, $2) > + mozilla_run_plugin(mozilla_t, $1) Merged. -- Chris PeBenito Tresys Technology, LLC www.tresys.com | oss.tresys.com