Update rpm macros

This commit is contained in:
Lukas Vrabec 2017-03-14 10:48:34 +01:00
parent 6fa7bc6ada
commit 29c9d82cda
1 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,9 @@
%_file_context_file %{_sysconfdir}/selinux/${SELINUXTYPE}/contexts/files/file_contexts
%_file_context_file_pre %{_localstatedir}/lib/rpm-state/file_contexts.pre
%_file_custom_defined_booleans %{_sharedstatedir}/selinux/${_policytype}/rpmbooleans.custom
%_file_custom_defined_booleans_tmp %{_sharedstatedir}/selinux/${_policytype}/rpmbooleans.custom.tmp
# %selinux_modules_install [-s <policytype>] module [module]...
%selinux_modules_install("s:") \
. /etc/selinux/config \
@ -85,7 +88,7 @@ if [ -z "${_policytype}" ]; then \
fi \
LOCAL_MODIFICATIONS=$(semanage boolean -E) \
if [ ! -f %_file_custom_defined_booleans ]; then \
echo "# This file is managed by selinux.macros. Do not edit it manually" > %_file_custom_defined_booleans \
echo "# This file is managed by macros.selinux-policy. Do not edit it manually" > %_file_custom_defined_booleans \
fi \
semanage_import='' \
for boolean in %*; do \