Accepting request 1172201 from home:jsegitz:branches:security:SELinux_6

- Move to %posttrans to ensure selinux-policy got updated before
  the commands run (bsc#1221720)

OBS-URL: https://build.opensuse.org/request/show/1172201
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/selinux-policy?expand=0&rev=219
This commit is contained in:
Johannes Segitz 2024-05-06 14:44:10 +00:00 committed by Git OBS Bridge
parent 55bd7d562d
commit a50eda674e
2 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon May 6 07:44:20 UTC 2024 - Johannes Segitz <jsegitz@suse.com>
- Move to %posttrans to ensure selinux-policy got updated before
the commands run (bsc#1221720)
-------------------------------------------------------------------
Mon Apr 15 13:23:40 UTC 2024 - Cathy Hu <cathy.hu@suse.com>

View File

@ -94,9 +94,9 @@ BuildRequires: python3-policycoreutils
# we need selinuxenabled
Requires(pre): policycoreutils >= %{POLICYCOREUTILSVER}
Requires(pre): pam-config
Requires(post): pam-config
Requires(post): selinux-tools
Requires(post): /usr/bin/sha512sum
Requires(posttrans): pam-config
Requires(posttrans): selinux-tools
Requires(posttrans): /usr/bin/sha512sum
Recommends: audit
Recommends: selinux-tools
# for audit2allow
@ -541,7 +541,7 @@ SELinux Reference policy targeted base module.
%pre targeted
%preInstall targeted
%post targeted
%posttrans targeted
%postInstall $1 targeted
exit 0
@ -637,7 +637,7 @@ SELinux Reference policy mls base module.
%pre mls
%preInstall mls
%post mls
%posttrans mls
%postInstall $1 mls
%postun mls