All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] optional_policy blocks
@ 2011-01-18 14:39 Guido Trentalancia
  2011-01-18 14:58 ` Dominick Grift
  0 siblings, 1 reply; 8+ messages in thread
From: Guido Trentalancia @ 2011-01-18 14:39 UTC (permalink / raw)
  To: refpolicy

Hello !

I am trying to build and test a modified version of the git reference
policy. It is being built of type MCS and not monolithic.

Unfortunately, it seems that for some reason all of the
"optional_policy" blocks that are often used in TE files are not being
compiled in.

The modules that should trigger the optional_policy blocks are all being
compiled and loaded...

What should I do to enable the inclusion of such blocks in the policy ?

>From searching the mailing list, I could only find out that in the past,
the module on which the optional block depends used to be defined at the
beginning of the optional block... But this should be deprecated now.

The optional blocks usually contain just one or more interface calls,
such as:

optional_policy(`
        policykit_dbus_chat(system_dbusd_t)
        policykit_domtrans_auth(system_dbusd_t)
        policykit_search_lib(system_dbusd_t)
')

where the interface calls are defined in policykit.if. This is actually
an example from an existing part of the git reference policy.

Regards,

Guido

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

end of thread, other threads:[~2011-01-18 23:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-18 14:39 [refpolicy] optional_policy blocks Guido Trentalancia
2011-01-18 14:58 ` Dominick Grift
2011-01-18 15:53   ` Guido Trentalancia
2011-01-18 16:05     ` Dominick Grift
2011-01-18 20:56       ` Guido Trentalancia
2011-01-18 23:51         ` Chris PeBenito
2011-01-18 16:16   ` Guido Trentalancia
2011-01-18 16:27     ` Dominick Grift

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.