46acfdd455
system_r is required by the policy_module macro, which however will be expanded as empty if the module is built into base.pp. system_r is defined in the kernel.te, its definition should be moved to the top of base.conf so that other modules copied earlier into base.conf than kernel.te could reference system_r in their unconditional block properly. Signed-off-by: Harry Ciao <qingtao.cao@windriver.com>
16 lines
785 B
Sed
16 lines
785 B
Sed
# comment out lines that are moved by the build
|
|
# process, so line numbers provided by m4 are preserved.
|
|
|
|
# lines in require and optional blocks are not moved
|
|
/require \{/,/} # end require/b nextline
|
|
/optional \{/,/} # end optional/b nextline
|
|
|
|
/^[[:blank:]]*(attribute(_role)?|type(alias)?) /s/^/# this line was moved by the build process: &/
|
|
/^[[:blank:]]*(port|node|netif|genfs)con /s/^/# this line was moved by the build process: &/
|
|
/^[[:blank:]]*fs_use_(xattr|task|trans) /s/^/# this line was moved by the build process: &/
|
|
/^[[:blank:]]*sid /s/^/# this line was moved by the build process: &/
|
|
/^[[:blank:]]*bool /s/^/# this line was moved by the build process: &/
|
|
/^[[:blank:]]*role[[:blank:]]+[a-zA-Z_]+[[:blank:]]*;/s/^/# this line was moved by the build process: &/
|
|
|
|
:nextline
|