All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] A mozilla_run_plugin bug
@ 2011-06-23  3:20 HarryCiao
  2011-06-24 13:05 ` Christopher J. PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: HarryCiao @ 2011-06-23  3:20 UTC (permalink / raw)
  To: refpolicy


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)

Thanks,
Harry
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.tresys.com/pipermail/refpolicy/attachments/20110623/878b6226/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-the-call-to-mozilla_run_plugin.patch
Type: text/x-patch
Size: 1155 bytes
Desc: not available
Url : http://oss.tresys.com/pipermail/refpolicy/attachments/20110623/878b6226/attachment.bin 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-24 13:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-23  3:20 [refpolicy] A mozilla_run_plugin bug HarryCiao
2011-06-24 13:05 ` Christopher J. PeBenito

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.