Blame fapolicyd.spec

c6fc94a
Summary: Application Whitelisting Daemon
c6fc94a
Name: fapolicyd
2f7dcac
Version: 0.8.9
2f7dcac
Release: 1%{?dist}
c6fc94a
License: GPLv3+
c6fc94a
URL: http://people.redhat.com/sgrubb/fapolicyd
c6fc94a
Source0: https://people.redhat.com/sgrubb/fapolicyd/%{name}-%{version}.tar.gz
c6fc94a
BuildRequires: kernel-headers
579a187
BuildRequires: autoconf automake make gcc libtool
c6fc94a
BuildRequires: systemd-devel libgcrypt-devel rpm-devel file-devel
1e0f11d
BuildRequires: libcap-ng-devel libseccomp-devel lmdb-devel
579a187
BuildRequires: python3-devel
c6fc94a
Requires(pre): shadow-utils
c6fc94a
Requires(post): systemd-units
c6fc94a
Requires(preun): systemd-units
c6fc94a
Requires(postun): systemd-units
c6fc94a
d0e26ac
c6fc94a
%description
c6fc94a
Fapolicyd (File Access Policy Daemon) implements application whitelisting
c6fc94a
to decide file access rights. Applications that are known via a reputation
c6fc94a
source are allowed access while unknown applications are not. The daemon
c6fc94a
makes use of the kernel's fanotify interface to determine file access rights.
c6fc94a
c6fc94a
%prep
c6fc94a
%setup -q
c6fc94a
c6fc94a
%build
579a187
./autogen.sh
579a187
%configure --with-audit
c6fc94a
make CFLAGS="%{optflags}" %{?_smp_mflags}
c6fc94a
c6fc94a
%install
c6fc94a
make DESTDIR="%{buildroot}" INSTALL='install -p' install
579a187
mkdir -p %{buildroot}/%{python3_sitelib}/dnf-plugins/
579a187
install -p -m 644 dnf/%{name}-dnf-plugin.py %{buildroot}/%{python3_sitelib}/dnf-plugins/
d0e26ac
install -p -m 644 -D init/%{name}-tmpfiles.conf %{buildroot}/%{_tmpfilesdir}/%{name}.conf
1e0f11d
mkdir -p %{buildroot}/%{_localstatedir}/lib/%{name}
d0e26ac
mkdir -p %{buildroot}/run/%{name}
c6fc94a
c6fc94a
%pre
d0e26ac
getent passwd %{name} >/dev/null || useradd -r -M -d %{_localstatedir}/lib/%{name} -s /sbin/nologin -c "Application Whitelisting Daemon" %{name}
c6fc94a
c6fc94a
%post
579a187
%systemd_post %{name}.service
c6fc94a
c6fc94a
%preun
579a187
%systemd_preun %{name}.service
c6fc94a
c6fc94a
%postun
579a187
%systemd_postun_with_restart %{name}.service
c6fc94a
c6fc94a
%files
579a187
%doc README.md
c6fc94a
%{!?_licensedir:%global license %%doc}
c6fc94a
%license COPYING
579a187
%attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}
579a187
%config(noreplace) %attr(644,root,%{name}) %{_sysconfdir}/%{name}/%{name}.rules
579a187
%config(noreplace) %attr(644,root,%{name}) %{_sysconfdir}/%{name}/%{name}.mounts
579a187
%config(noreplace) %attr(644,root,%{name}) %{_sysconfdir}/%{name}/%{name}.conf
579a187
%attr(644,root,root) %{_unitdir}/%{name}.service
d0e26ac
%attr(644,root,root) %{_tmpfilesdir}/%{name}.conf
579a187
%attr(755,root,root) %{_sbindir}/%{name}
579a187
%attr(755,root,root) %{_sbindir}/%{name}-cli
c6fc94a
%attr(644,root,root) %{_mandir}/man8/*
c6fc94a
%attr(644,root,root) %{_mandir}/man5/*
579a187
%ghost %{_localstatedir}/log/%{name}-access.log
579a187
%attr(770,root,%{name}) %dir %{_localstatedir}/lib/%{name}
d0e26ac
%attr(770,root,%{name}) %dir /run/%{name}
579a187
%ghost %{_localstatedir}/run/%{name}/%{name}.fifo
1e0f11d
%ghost %{_localstatedir}/lib/%{name}/data.mdb
1e0f11d
%ghost %{_localstatedir}/lib/%{name}/lock.mdb
579a187
%{python3_sitelib}/dnf-plugins/%{name}-dnf-plugin.py
579a187
%{python3_sitelib}/dnf-plugins/__pycache__/%{name}-dnf-plugin.*.pyc
c6fc94a
c6fc94a
%changelog
2f7dcac
* Mon May 06 2019 Radovan Sroka <rsroka@redhat.com> - 0.8.9-1
2f7dcac
- New upstream release
2f7dcac
d0e26ac
* Wed Mar 13 2019 Radovan Sroka <rsroka@redhat.com> - 0.8.8-2
d0e26ac
- backport some patches to resolve dac_override for fapolicyd
d0e26ac
579a187
* Mon Mar 11 2019 Radovan Sroka <rsroka@redhat.com> - 0.8.8-1
579a187
- New upstream release
579a187
- Added new DNF plugin that can update the trust database when rpms are installed
579a187
- Added support for FAN_OPEN_EXEC_PERM
579a187
c2c99a3
* Wed Oct 03 2018 Steve Grubb <sgrubb@redhat.com> 0.8.7-1
c2c99a3
- New upstream bugfix release
c2c99a3
e3e9cb7
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.6-2
e3e9cb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e3e9cb7
1e0f11d
* Thu Jun 07 2018 Steve Grubb <sgrubb@redhat.com> 0.8.6-1
1e0f11d
- New upstream feature release
1e0f11d
cb2278b
* Fri May 18 2018 Steve Grubb <sgrubb@redhat.com> 0.8.5-2
558f243
- Add dist tag (#1579362)
558f243
c6fc94a
* Fri Feb 16 2018 Steve Grubb <sgrubb@redhat.com> 0.8.5-1
c6fc94a
- New release