fapolicyd/fapolicyd.spec

72 lines
2.3 KiB
RPMSpec
Raw Normal View History

2018-02-16 18:58:12 +00:00
Summary: Application Whitelisting Daemon
Name: fapolicyd
2018-06-07 13:01:29 +00:00
Version: 0.8.6
Release: 1%{?dist}
2018-02-16 18:58:12 +00:00
License: GPLv3+
URL: http://people.redhat.com/sgrubb/fapolicyd
Source0: https://people.redhat.com/sgrubb/fapolicyd/%{name}-%{version}.tar.gz
BuildRequires: kernel-headers
BuildRequires: systemd-devel libgcrypt-devel rpm-devel file-devel
2018-06-07 13:01:29 +00:00
BuildRequires: libcap-ng-devel libseccomp-devel lmdb-devel
2018-02-16 18:58:12 +00:00
Requires(pre): shadow-utils
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
%description
Fapolicyd (File Access Policy Daemon) implements application whitelisting
to decide file access rights. Applications that are known via a reputation
source are allowed access while unknown applications are not. The daemon
makes use of the kernel's fanotify interface to determine file access rights.
%prep
%setup -q
%build
%configure --with-audit
make CFLAGS="%{optflags}" %{?_smp_mflags}
%install
make DESTDIR="%{buildroot}" INSTALL='install -p' install
2018-06-07 13:01:29 +00:00
mkdir -p %{buildroot}/%{_localstatedir}/lib/%{name}
2018-02-16 18:58:12 +00:00
%pre
getent passwd fapolicyd >/dev/null || useradd -r -M -s /sbin/nologin -c "Application Whitelisting Daemon" fapolicyd
%post
%systemd_post fapolicyd.service
%preun
%systemd_preun fapolicyd.service
%postun
%systemd_postun_with_restart fapolicyd.service
%files
%doc README
%{!?_licensedir:%global license %%doc}
%license COPYING
%attr(750,root,fapolicyd) %dir %{_sysconfdir}/%{name}
%config(noreplace) %attr(644,root,fapolicyd) %{_sysconfdir}/%{name}/fapolicyd.rules
%config(noreplace) %attr(644,root,fapolicyd) %{_sysconfdir}/%{name}/fapolicyd.mounts
2018-06-07 13:01:29 +00:00
%config(noreplace) %attr(644,root,fapolicyd) %{_sysconfdir}/%{name}/fapolicyd.conf
2018-02-16 18:58:12 +00:00
%attr(644,root,root) %{_unitdir}/fapolicyd.service
%attr(755,root,root) %{_sbindir}/fapolicyd
%attr(644,root,root) %{_mandir}/man8/*
%attr(644,root,root) %{_mandir}/man5/*
%ghost %{_localstatedir}/log/fapolicyd-access.log
2018-06-07 13:01:29 +00:00
%attr(770,root,fapolicyd) %dir %{_localstatedir}/lib/%{name}
%ghost %{_localstatedir}/lib/%{name}/data.mdb
%ghost %{_localstatedir}/lib/%{name}/lock.mdb
2018-02-16 18:58:12 +00:00
%changelog
2018-06-07 13:01:29 +00:00
* Thu Jun 07 2018 Steve Grubb <sgrubb@redhat.com> 0.8.6-1
- New upstream feature release
2018-05-17 13:28:52 +00:00
* Thu May 18 2018 Steve Grubb <sgrubb@redhat.com> 0.8.5-2
- Add dist tag (#1579362)
2018-02-16 18:58:12 +00:00
* Fri Feb 16 2018 Steve Grubb <sgrubb@redhat.com> 0.8.5-1
- New release