From a7f1882a24273ca6b81b9a535fac2f74ac791f96 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Jan 14 2021 10:56:46 +0000 Subject: import glusterfs-selinux for Storage SIG --- diff --git a/.glusterfs-selinux.meta b/.glusterfs-selinux.meta new file mode 100644 index 0000000..6672fc0 --- /dev/null +++ b/.glusterfs-selinux.meta @@ -0,0 +1 @@ +a6fb4db08b7adbc8224c7b351b89bc9db0311d3e SOURCES/glusterfs-selinux-0.1.0.tar.gz diff --git a/SPECS/glusterfs-selinux.spec b/SPECS/glusterfs-selinux.spec new file mode 100644 index 0000000..ad1a132 --- /dev/null +++ b/SPECS/glusterfs-selinux.spec @@ -0,0 +1,82 @@ +%global selinuxtype targeted +%global moduletype contrib +%global modulename glusterd + + +Name: glusterfs-selinux +Version: 0.1.0 +Release: 3%{?dist} +Summary: Glusterfs targeted SELinux policy + +License: GPLv2 +URL: https://github.com/gluster/glusterfs-selinux +Source0: https://github.com/gluster/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: git +Requires: selinux-policy-targeted +Requires(post): selinux-policy-targeted +BuildRequires: pkgconfig(systemd) +BuildRequires: selinux-policy-devel +Requires(post): selinux-policy-targeted +Requires(post): libselinux-utils +Requires(post): policycoreutils +%{?selinux_requires} + + +%description +SELinux targeted policy modules for glusterfs + + +%prep +%setup -q -n %{name}-%{version} + + +%build +make %{?_smp_mflags} + + +%install +%make_install + + +%pre +%selinux_relabel_pre -s %{selinuxtype} + + +%post +%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2 + + +%postun +if [ $1 -eq 0 ]; then + %selinux_modules_uninstall -s %{selinuxtype} %{modulename} +fi + + +%posttrans +%selinux_relabel_post -s %{selinuxtype} + + +%files +%{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.* +%{_datadir}/selinux/devel/include/%{moduletype}/ipp-%{modulename}.if +%ghost %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename} + + + +%changelog +* Thu Jan 14 2021 Niels de Vos - 0.1.0-3 +- import into CentOS Storage SIG +- correct reference to source tarball + +* Thu May 07 2020 Vit Mojzis - 0.1.0-2 +- Update based on DSP guidelines + https://fedoraproject.org/wiki/SELinux/IndependentPolicy + +* Thu Nov 15 2018 Milind Changire - 0.1.0-2 +- corrections toward review request comments from misc - bz#1649713 + +* Mon Jul 02 2018 Milind Changire - 0.1.0-1 +- first build +