Compare commits
No commits in common. "c8" and "c10s" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/tpm2-abrmd-2.3.1.tar.gz
|
/tpm2-abrmd-*.tar.gz
|
||||||
|
@ -1 +0,0 @@
|
|||||||
02f70f06068fd32d7b9cd2394500e3eb8e7b1667 SOURCES/tpm2-abrmd-2.3.1.tar.gz
|
|
3
README.md
Normal file
3
README.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# tpm2-abrmd-selinux
|
||||||
|
|
||||||
|
The tpm2-abrmd-selinux package
|
@ -1,85 +0,0 @@
|
|||||||
# defining macros needed by SELinux
|
|
||||||
%global selinuxtype targeted
|
|
||||||
%global selinux_policyver 3.14.1
|
|
||||||
%global moduletype contrib
|
|
||||||
%global modulename tabrmd
|
|
||||||
|
|
||||||
Name: tpm2-abrmd-selinux
|
|
||||||
Version: 2.3.1
|
|
||||||
Release: 1%{?dist}
|
|
||||||
Summary: SELinux policies for tpm2-abrmd
|
|
||||||
|
|
||||||
License: BSD
|
|
||||||
URL: https://github.com/tpm2-software/tpm2-abrmd
|
|
||||||
Source0: https://github.com/tpm2-software/tpm2-abrmd/archive/%{version}/tpm2-abrmd-%{version}.tar.gz
|
|
||||||
Patch0: selinux-allow-fwupd-to-communicate-with-tpm2-abrmd.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
|
||||||
Requires: selinux-policy >= %{selinux_policyver}
|
|
||||||
Requires: selinux-policy-%{selinuxtype} >= %{selinux_policyver}
|
|
||||||
BuildRequires: git
|
|
||||||
BuildRequires: pkgconfig(systemd)
|
|
||||||
BuildRequires: selinux-policy
|
|
||||||
BuildRequires: selinux-policy-devel
|
|
||||||
Requires(pre): libselinux-utils
|
|
||||||
Requires(post): policycoreutils
|
|
||||||
Requires(post): policycoreutils-python-utils
|
|
||||||
|
|
||||||
%description
|
|
||||||
SELinux policy modules for tpm2-abrmd.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%autosetup -p1 -n tpm2-abrmd-%{version}
|
|
||||||
|
|
||||||
%build
|
|
||||||
pushd selinux
|
|
||||||
make %{?_smp_mflags} TARGET="tabrmd" SHARE="%{_datadir}"
|
|
||||||
popd
|
|
||||||
|
|
||||||
%pre
|
|
||||||
%selinux_relabel_pre -s %{selinuxtype}
|
|
||||||
|
|
||||||
%install
|
|
||||||
# install policy modules
|
|
||||||
pushd selinux
|
|
||||||
install -d %{buildroot}%{_datadir}/selinux/packages
|
|
||||||
install -d -p %{buildroot}%{_datadir}/selinux/devel/include/%{moduletype}
|
|
||||||
install -p -m 644 %{modulename}.if %{buildroot}%{_datadir}/selinux/devel/include/%{moduletype}
|
|
||||||
install -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages
|
|
||||||
popd
|
|
||||||
|
|
||||||
%check
|
|
||||||
|
|
||||||
%post
|
|
||||||
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{modulename}.pp.bz2
|
|
||||||
|
|
||||||
%postun
|
|
||||||
if [ $1 -eq 0 ]; then
|
|
||||||
%selinux_modules_uninstall -s %{selinuxtype} %{modulename}
|
|
||||||
fi
|
|
||||||
|
|
||||||
%posttrans
|
|
||||||
%selinux_relabel_post -s %{selinuxtype}
|
|
||||||
|
|
||||||
%files
|
|
||||||
%license LICENSE
|
|
||||||
%{_datadir}/selinux/*
|
|
||||||
%{_datadir}/selinux/packages/%{modulename}.pp.bz2
|
|
||||||
%{_datadir}/selinux/devel/include/%{moduletype}/%{modulename}.if
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Mon Nov 16 2020 Jerry Snitselaar <jsnitsel@redhat.com> - 2.3.3-1
|
|
||||||
- Rebase to 2.3.1 release
|
|
||||||
resolves: rhbz#1898384
|
|
||||||
|
|
||||||
* Tue May 14 2019 Jerry Snitselaar <jsnitsel@redhat.com> - 2.0.0-3
|
|
||||||
- Fix Requires issue.
|
|
||||||
- Add initial CI gating support.
|
|
||||||
resolves: rhbz#1642000, rhbz#1682415
|
|
||||||
|
|
||||||
* Tue Sep 11 2018 Jerry Snitselaar <jsnitsel@redhat.com> - 2.0.0-2
|
|
||||||
- Fix dependency
|
|
||||||
resolves: rhbz#1628771
|
|
||||||
|
|
||||||
* Wed Jul 04 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.0.0-1
|
|
||||||
- Initial import (rhbz#1550595)
|
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (tpm2-abrmd-2.3.1.tar.gz) = 144ab2b147cd18f892f3c05181efdbed2ac422fe8507eb42871ffe571340b6395431743a4f1995a7ce7a914fd5e7afd2b17328062c893a0403708c2c4d92e0cb
|
139
tpm2-abrmd-selinux.spec
Normal file
139
tpm2-abrmd-selinux.spec
Normal file
@ -0,0 +1,139 @@
|
|||||||
|
# defining macros needed by SELinux
|
||||||
|
%global selinuxtype targeted
|
||||||
|
%global selinux_policyver 3.14.3-22
|
||||||
|
%global moduletype contrib
|
||||||
|
%global modulename tabrmd
|
||||||
|
|
||||||
|
Name: tpm2-abrmd-selinux
|
||||||
|
Version: 2.3.1
|
||||||
|
Release: 13%{?dist}
|
||||||
|
Summary: SELinux policies for tpm2-abrmd
|
||||||
|
|
||||||
|
License: BSD-2-Clause
|
||||||
|
URL: https://github.com/tpm2-software/tpm2-abrmd
|
||||||
|
Source0: https://github.com/tpm2-software/tpm2-abrmd/archive/%{version}/tpm2-abrmd-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: selinux-allow-fwupd-to-communicate-with-tpm2-abrmd.patch
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: selinux-policy >= %{selinux_policyver}
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: git
|
||||||
|
BuildRequires: pkgconfig(systemd)
|
||||||
|
BuildRequires: selinux-policy
|
||||||
|
BuildRequires: selinux-policy-devel
|
||||||
|
BuildRequires: selinux-policy-%{selinuxtype}
|
||||||
|
Requires(post): selinux-policy-base >= %{selinux_policyver}
|
||||||
|
Requires(post): libselinux-utils
|
||||||
|
Requires(post): policycoreutils
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||||
|
Requires(post): policycoreutils-python-utils
|
||||||
|
%else
|
||||||
|
Requires(post): policycoreutils-python
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
SELinux policy modules for tpm2-abrmd.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n tpm2-abrmd-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
pushd selinux
|
||||||
|
make %{?_smp_mflags} TARGET="tabrmd" SHARE="%{_datadir}"
|
||||||
|
popd
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%selinux_relabel_pre -s %{selinuxtype}
|
||||||
|
|
||||||
|
%install
|
||||||
|
# install policy modules
|
||||||
|
pushd selinux
|
||||||
|
install -d %{buildroot}%{_datadir}/selinux/packages
|
||||||
|
install -d -p %{buildroot}%{_datadir}/selinux/devel/include/%{moduletype}
|
||||||
|
install -p -m 644 %{modulename}.if %{buildroot}%{_datadir}/selinux/devel/include/%{moduletype}
|
||||||
|
install -m 0644 %{modulename}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages
|
||||||
|
popd
|
||||||
|
|
||||||
|
%check
|
||||||
|
|
||||||
|
%post
|
||||||
|
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{modulename}.pp.bz2
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ $1 -eq 0 ]; then
|
||||||
|
%selinux_modules_uninstall -s %{selinuxtype} %{modulename}
|
||||||
|
fi
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
%selinux_relabel_post -s %{selinuxtype}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE
|
||||||
|
%{_datadir}/selinux/*
|
||||||
|
%{_datadir}/selinux/packages/%{modulename}.pp.bz2
|
||||||
|
%{_datadir}/selinux/devel/include/%{moduletype}/%{modulename}.if
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 2.3.1-13
|
||||||
|
- Bump release for October 2024 mass rebuild:
|
||||||
|
Resolves: RHEL-64018
|
||||||
|
|
||||||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.3.1-12
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Mon Feb 19 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 2.3.1-11
|
||||||
|
- Fix policycoreutils-python-utils dependency for RHEL 8+
|
||||||
|
|
||||||
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-10
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Sep 26 2023 Štěpán Horáček <shoracek@redhat.com> - 2.3.1-9
|
||||||
|
- Migrate license to SPDX
|
||||||
|
|
||||||
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-6
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Feb 12 2020 Javier Martinez Canillas <javierm@redhat.com> - 2.3.1-1
|
||||||
|
- Update to 2.3.1 release
|
||||||
|
|
||||||
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Mar 08 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.1.0-2
|
||||||
|
- selinux: allow tpm2-abrmd to communicate with fwupd
|
||||||
|
Resolves: rhbz#1665701
|
||||||
|
|
||||||
|
* Fri Feb 22 2019 Javier Martinez Canillas <javierm@redhat.com> - 2.1.0-1
|
||||||
|
- Update to 2.1.0 release
|
||||||
|
- Add selinux-policy-%{selinuxtype} BuildRequires
|
||||||
|
|
||||||
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 04 2018 Javier Martinez Canillas <javierm@redhat.com> - 2.0.0-1
|
||||||
|
- Initial import (rhbz#1550595)
|
Loading…
Reference in New Issue
Block a user