-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathglusterfs-selinux.spec
81 lines (52 loc) · 2.04 KB
/
glusterfs-selinux.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
%global selinuxtype targeted
%global moduletype contrib
%global modulename glusterd
Name: glusterfs-selinux
Version: 2.0.1
Release: 1%{?dist}
Summary: Glusterfs targeted SELinux policy
License: GPLv2
URL: https://github.com/gluster/glusterfs-selinux
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
Requires: selinux-policy-%{selinuxtype}
Requires(post): selinux-policy-%{selinuxtype}
BuildRequires: selinux-policy-devel
%{?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.*
%ghost %attr(700, root, root) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}
%ghost %attr(600, root, root) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}/cil
%ghost %attr(600, root, root) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}/hll
%ghost %attr(600, root, root) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}/lang_ext
%license COPYING
%changelog
* Tue Jul 6 2021 Shwetha K Acharya <sacharya@redhat.com>
- Tagging release 2.0.1
* Wed Jan 27 2021 Rinku Kothiya <rkothiya@redhat.com> - 0.1.1-4
- Incorporated review comments - bz#1901123
* Thu May 07 2020 Vit Mojzis <vmojzis@redhat.com> - 0.1.0-3
- Update based on DSP guidelines
https://fedoraproject.org/wiki/SELinux/IndependentPolicy
* Thu Nov 15 2018 Milind Changire <mchangir@redhat.com> - 0.1.0-2
- corrections toward review request comments from misc - bz#1649713
* Mon Jul 02 2018 Milind Changire <mchangir@redhat.com> - 0.1.0-1
- first build