diff --git a/open-vm-tools.spec b/open-vm-tools.spec index 12081d1..8ea1764 100644 --- a/open-vm-tools.spec +++ b/open-vm-tools.spec @@ -28,7 +28,7 @@ Name: open-vm-tools Version: %{toolsversion} -Release: 3%{?dist} +Release: 4%{?dist} Summary: Open Virtual Machine Tools for virtual machines hosted on VMware License: GPLv2 URL: https://github.com/vmware/%{name} @@ -38,6 +38,7 @@ Source1: %{toolsdaemon}.service Source2: %{vgauthdaemon}.service Source3: run-vmblock\x2dfuse.mount Source4: open-vm-tools.conf +Source5: vmtoolsd.pam %if 0%{?rhel} >= 7 ExclusiveArch: x86_64 @@ -212,6 +213,7 @@ install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service install -p -m 644 -D %{SOURCE2} %{buildroot}%{_unitdir}/%{vgauthdaemon}.service install -p -m 644 -D '%{SOURCE3}' %{buildroot}%{_unitdir}/run-vmblock\\x2dfuse.mount install -p -m 644 -D %{SOURCE4} %{buildroot}%{_modulesloaddir}/open-vm-tools.conf +install -p -m 644 -D %{SOURCE5} %{buildroot}%{_sysconfdir}/pam.d/vmtoolsd # 'make check' in open-vm-tools rebuilds docs and ends up regenerating # the font file. We can add %%check secion once 'make check' is fixed @@ -356,6 +358,9 @@ fi %{_bindir}/vmware-vgauth-smoketest %changelog +* Sun May 17 2020 Ravindra Kumar - 11.0.5-4 +- Updated PAM configuration file to follow configured authn scheme. + * Tue Mar 24 2020 Ravindra Kumar - 11.0.5-3 - Use /sbin/ldconfig on older than Fedora 28 and RHEL 8 platforms. diff --git a/vmtoolsd.pam b/vmtoolsd.pam new file mode 100644 index 0000000..aa3daa0 --- /dev/null +++ b/vmtoolsd.pam @@ -0,0 +1,5 @@ +#%PAM-1.0 +auth substack password-auth +auth include postlogin +account required pam_nologin.so +account include password-auth