Do not hardcode targeted in installCmds()
sefcontext_compile can create .bin files even for mls and maybe for minimum
This commit is contained in:
parent
96a0f667ce
commit
e3bf3ede6a
@ -184,7 +184,7 @@ install -m0644 selinux_config/customizable_types %{buildroot}%{_sysconfdir}/seli
|
|||||||
touch %{buildroot}%{_sysconfdir}/selinux/%1/contexts/files/file_contexts.local \
|
touch %{buildroot}%{_sysconfdir}/selinux/%1/contexts/files/file_contexts.local \
|
||||||
touch %{buildroot}%{_sysconfdir}/selinux/%1/contexts/files/file_contexts.local.bin \
|
touch %{buildroot}%{_sysconfdir}/selinux/%1/contexts/files/file_contexts.local.bin \
|
||||||
touch %{buildroot}%{_sysconfdir}/selinux/%1/file_contexts.homedirs.bin \
|
touch %{buildroot}%{_sysconfdir}/selinux/%1/file_contexts.homedirs.bin \
|
||||||
sefcontext_compile -o %{buildroot}%{_sysconfdir}/selinux/targeted/contexts/files/file_contexts.bin %{buildroot}%{_sysconfdir}/selinux/targeted/contexts/files/file_contexts \
|
sefcontext_compile -o %{buildroot}%{_sysconfdir}/selinux/%1/contexts/files/file_contexts.bin %{buildroot}%{_sysconfdir}/selinux/%1/contexts/files/file_contexts \
|
||||||
cp %{SOURCE30} %{buildroot}%{_sysconfdir}/selinux/%1 \
|
cp %{SOURCE30} %{buildroot}%{_sysconfdir}/selinux/%1 \
|
||||||
rm -f %{buildroot}/%{_usr}/share/selinux/%1/*pp* \
|
rm -f %{buildroot}/%{_usr}/share/selinux/%1/*pp* \
|
||||||
/usr/bin/sha512sum %{buildroot}%{_sysconfdir}/selinux/%1/policy/policy.%{POLICYVER} | cut -d' ' -f 1 > %{buildroot}%{_sysconfdir}/selinux/%1/.policy.sha512; \
|
/usr/bin/sha512sum %{buildroot}%{_sysconfdir}/selinux/%1/policy/policy.%{POLICYVER} | cut -d' ' -f 1 > %{buildroot}%{_sysconfdir}/selinux/%1/.policy.sha512; \
|
||||||
|
Loading…
Reference in New Issue
Block a user