Accepting request 1113527 from security:apparmor
- Fix pam_apparmor %post and %postun scripts to handle pam-config errors (bsc#1215596) (forwarded request 1113476 from dmdiss) OBS-URL: https://build.opensuse.org/request/show/1113527 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apparmor?expand=0&rev=197
This commit is contained in:
commit
75d19b971e
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 25 14:07:39 UTC 2023 - David Disseldorp <ddiss@suse.com>
|
||||
|
||||
- Fix pam_apparmor %post and %postun scripts to handle pam-config errors
|
||||
(bsc#1215596)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 25 09:28:33 UTC 2023 - David Disseldorp <ddiss@suse.com>
|
||||
|
||||
|
@ -760,12 +760,14 @@ systemctl is-active -q apparmor && systemctl reload apparmor ||:
|
||||
%if %{with pam}
|
||||
|
||||
%post -n pam_apparmor
|
||||
pam-config -a --apparmor
|
||||
pam-config --update
|
||||
if [ $1 -eq 1 ]; then
|
||||
pam-config --add --apparmor || :
|
||||
fi
|
||||
|
||||
%postun -n pam_apparmor
|
||||
pam-config -d --apparmor
|
||||
pam-config --update
|
||||
if [ $1 -eq 0 ]; then
|
||||
pam-config --delete --apparmor || :
|
||||
fi
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user