Skip to content

Commit cba53eb

Browse files
authored
selinux-policy: Restore excluded policy.kern. (microsoft#14549)
Signed-off-by: Chris PeBenito <[email protected]>
1 parent 243aa16 commit cba53eb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

SPECS/selinux-policy/selinux-policy.spec

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Summary: SELinux policy
1010
Name: selinux-policy
1111
Version: %{refpolicy_major}.%{refpolicy_minor}
12-
Release: 11%{?dist}
12+
Release: 12%{?dist}
1313
License: GPLv2
1414
Vendor: Microsoft Corporation
1515
Distribution: Azure Linux
@@ -132,7 +132,7 @@ enforced by the kernel when running with SELinux enabled.
132132
%{_sharedstatedir}/selinux/%{policy_name}/active/seusers
133133
%{_sharedstatedir}/selinux/%{policy_name}/active/file_contexts
134134
%{_sharedstatedir}/selinux/%{policy_name}/active/modules_checksum
135-
%exclude %{_sharedstatedir}/selinux/%{policy_name}/active/policy.kern
135+
%verify(not md5 size mtime) %{_sharedstatedir}/selinux/%{policy_name}/active/policy.kern
136136
%verify(not md5 size mtime) %{_sharedstatedir}/selinux/%{policy_name}/active/file_contexts.homedirs
137137
%{_sharedstatedir}/selinux/%{policy_name}/active/modules/100/*
138138

@@ -329,6 +329,9 @@ exit 0
329329
selinuxenabled && semodule -nB
330330
exit 0
331331
%changelog
332+
* Thu Aug 18 2025 Chris PeBenito <[email protected]> - 2.20240226-12
333+
- Include policy.kern otherwise some semanage operations fail without it.
334+
332335
* Fri Apr 04 2025 Chris PeBenito <[email protected]> - 2.20240226-11
333336
- Add fix for gpg-agent use in rpm scripts for watching root's secrets dir.
334337

0 commit comments

Comments
 (0)