#5 Don't install udev rule for TPM character devices
Merged 6 years ago by yunyings. Opened 6 years ago by javierm.
rpms/ javierm/tpm2-abrmd master  into  master

file modified
+5 -3
@@ -1,6 +1,6 @@ 

  Name: tpm2-abrmd

  Version: 1.1.0

- Release: 11%{?dist}

+ Release: 12%{?dist}

  Summary: A system daemon implementing TPM2 Access Broker and Resource Manager

  

  License: BSD
@@ -38,7 +38,7 @@ 

  

  %install

  %make_install

- mv %{buildroot}/%{_udevrulesdir}/tpm-udev.rules %{buildroot}/%{_udevrulesdir}/60-tpm-udev.rules

+ rm -f %{buildroot}/%{_udevrulesdir}/tpm-udev.rules

  find %{buildroot}%{_libdir} -type f -name \*.la -delete

  

  %pre
@@ -55,7 +55,6 @@ 

  %{_sbindir}/tpm2-abrmd

  %config(noreplace) %{_sysconfdir}/dbus-1/system.d/tpm2-abrmd.conf

  %{_unitdir}/tpm2-abrmd.service

- %{_udevrulesdir}/60-tpm-udev.rules

  %{_mandir}/man3/tss2_tcti_tabrmd_init.3.gz

  %{_mandir}/man3/tss2_tcti_tabrmd_init_full.3.gz

  %{_mandir}/man7/tcti-tabrmd.7.gz
@@ -90,6 +89,9 @@ 

  %systemd_postun tpm2-abrmd.service

  

  %changelog

+ * Fri Feb 23 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.1.0-12

+ - Don't install udev rule for TPM character devices

+ 

  * Wed Feb 21 2018 Javier Martinez Canillas <javierm@redhat.com> - 1.1.0-11

  - Remove ExclusiveArch: x86_64 directive

  

The udev rules to change the ownership and access permission for the TPM2
character devices is installed by the tpm2-abrmd package. But users could
want to use the TPM2 device without the userspace tpm2-abrmd, for example
by using the in-kernel resource manager or accessing the device directly.

In those cases they may not install the tpm2-abrmd package but still want
the correct user, group and permissions set in the TPM2 character device,
so let's do that in the tpm2-tss package instead that is always required.

Signed-off-by: Javier Martinez Canillas javierm@redhat.com

Pull-Request has been merged by yunyings

6 years ago