From: guido@trentalancia.com (Guido Trentalancia) Date: Tue, 18 Jan 2011 15:39:14 +0100 Subject: [refpolicy] optional_policy blocks Message-ID: <1295361554.3083.8.camel@tesla.lan> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com 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