diff --git a/cockpit.spec b/cockpit.spec index 17a7250..68090f3 100644 --- a/cockpit.spec +++ b/cockpit.spec @@ -211,6 +211,10 @@ mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir}/%{name}/html ln -sf /sbin/service $RPM_BUILD_ROOT/usr/sbin/rc%{name} # no firewalld on SUSE rm -rf %{buildroot}%{_prefix}/lib/firewalld +# PAM security +install -d %{_lib}/security +mv %{buildroot}%{_libdir}/security/pam_reauthorize.so %{buildroot}%{_lib}/security +rm -rf %{_libdir}/security %endif %files @@ -235,9 +239,10 @@ rm -rf %{buildroot}%{_prefix}/lib/firewalld %{_bindir}/cockpit-bridge %attr(4755, -, -) %{_libexecdir}/cockpit-polkit %if 0%{?suse_version} -%dir %{_libdir}/security -%endif +%{_lib}/security/pam_reauthorize.so +%else %{_libdir}/security/pam_reauthorize.so +%endif %files daemon %if 0%{?suse_version}