supported by Zeuner Solutions SourceForge.net Logo

documentation for the macro "source_code_license"

This macro defines additional parts of a policy needed to distinguish between source code and compilate for describing licenses that need this distinction.

It is defined in the file licenses.m4.

m4 code:

define(`source_code_license',
`define(`$1_types',patsubst(patsubst(notmember(`
$1_compiled_t
',patsubst(`$1_types',`
',`)notmember(`
$1_compiled_t
',')),`
$',)
$1_compiled_t,^
,))dnl
define(`$1_roles',patsubst(patsubst(notmember(`
$1_compiled_r
',patsubst(`$1_roles',`
',`)notmember(`
$1_compiled_r
',')),`
$',)
$1_compiled_r,^
,))dnl
define(role_typesX$1_compiled_r,$1_compiled_t)dnl
allow_role_transitions($1_compiled_r)dnl
define(rolesX$1_compiled_u,$1_compiled_r)dnl
define(`drm_users',
patsubst(patsubst(notmember(`
$1_compiled_u
',patsubst(`drm_users',`
',`)notmember(`
$1_compiled_u
',')),`
$',)
$1_compiled_u,^
,))dnl
')