All of lore.kernel.org
 help / color / mirror / Atom feed
* Use of optional_policy in templates (compiler bug or feature?)
@ 2008-10-15 16:02 Joe Nall
  2008-10-15 18:46 ` Christopher J. PeBenito
  0 siblings, 1 reply; 21+ messages in thread
From: Joe Nall @ 2008-10-15 16:02 UTC (permalink / raw)
  To: SE Linux

Is it legitimate to define a type within an optional_policy within a  
template?

I ask because there are a number of compile issues with policy that  
look like:

template(`wm_domain_template',`
...
         optional_policy(`
                 dbus_system_bus_client_template($1_wm,$1_wm_t)
# does not compile
#               dbus_user_bus_client_template($1,$1_wm,$1_wm_t)
         ')
...
')

Looking at the checkmodule source, it looks like type declarations  
declared within optionals are popped off the symbol stack in  
end_optional but left in the symbol table. These symbols later fail an  
is_id_in_scope test and generate an 'duplicate declaration of type/ 
attribute'.

I think this is related to:
http://oss.tresys.com/projects/refpolicy/ticket/43

and earlier complaints about this behavior in the X policy from Dan  
and Eamon in June/July.
http://www.nsa.gov/SeLinux/list-archive/0806/thread_body18.cfm

I'm running libsepol-2.0.33 which has the fix in the above thread.

joe

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

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

end of thread, other threads:[~2008-12-02 14:27 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-15 16:02 Use of optional_policy in templates (compiler bug or feature?) Joe Nall
2008-10-15 18:46 ` Christopher J. PeBenito
2008-10-15 19:59   ` Joe Nall
2008-10-16 12:49     ` Christopher J. PeBenito
2008-10-16 13:43       ` Joe Nall
2008-10-16 14:50         ` Joshua Brindle
2008-10-16 15:46           ` Joe Nall
2008-10-20 18:19           ` Daniel J Walsh
2008-10-20 18:41             ` Joe Nall
2008-10-20 23:52               ` Eamon Walsh
2008-10-22 14:01                 ` Stephen Smalley
2008-10-22 14:26                   ` Joe Nall
2008-10-22 14:28                     ` Stephen Smalley
2008-10-22 14:32                       ` Stephen Smalley
2008-10-22 17:42                         ` Joshua Brindle
2008-10-23 14:10                           ` Stephen Smalley
2008-10-23 14:15                             ` Joshua Brindle
2008-10-23 14:16                             ` Stephen Smalley
2008-11-24  3:35                         ` Joe Nall
2008-12-02 14:26                           ` Joe Nall
2008-12-02 14:27                             ` Stephen Smalley

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.