|
|
c6fc94a |
Summary: Application Whitelisting Daemon
|
|
|
c6fc94a |
Name: fapolicyd
|
|
|
c6fc94a |
Version: 0.8.5
|
|
|
558f243 |
Release: 2%{?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
|
|
|
c6fc94a |
BuildRequires: systemd-devel libgcrypt-devel rpm-devel file-devel
|
|
|
c6fc94a |
BuildRequires: libcap-ng-devel libseccomp-devel
|
|
|
c6fc94a |
Requires(pre): shadow-utils
|
|
|
c6fc94a |
Requires(post): systemd-units
|
|
|
c6fc94a |
Requires(preun): systemd-units
|
|
|
c6fc94a |
Requires(postun): systemd-units
|
|
|
c6fc94a |
|
|
|
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
|
|
|
c6fc94a |
%configure --with-audit
|
|
|
c6fc94a |
make CFLAGS="%{optflags}" %{?_smp_mflags}
|
|
|
c6fc94a |
|
|
|
c6fc94a |
%install
|
|
|
c6fc94a |
make DESTDIR="%{buildroot}" INSTALL='install -p' install
|
|
|
c6fc94a |
|
|
|
c6fc94a |
%pre
|
|
|
c6fc94a |
getent passwd fapolicyd >/dev/null || useradd -r -M -s /sbin/nologin -c "Application Whitelisting Daemon" fapolicyd
|
|
|
c6fc94a |
|
|
|
c6fc94a |
%post
|
|
|
c6fc94a |
%systemd_post fapolicyd.service
|
|
|
c6fc94a |
|
|
|
c6fc94a |
%preun
|
|
|
c6fc94a |
%systemd_preun fapolicyd.service
|
|
|
c6fc94a |
|
|
|
c6fc94a |
%postun
|
|
|
c6fc94a |
%systemd_postun_with_restart fapolicyd.service
|
|
|
c6fc94a |
|
|
|
c6fc94a |
%files
|
|
|
c6fc94a |
%doc README
|
|
|
c6fc94a |
%{!?_licensedir:%global license %%doc}
|
|
|
c6fc94a |
%license COPYING
|
|
|
c6fc94a |
%attr(750,root,fapolicyd) %dir %{_sysconfdir}/%{name}
|
|
|
c6fc94a |
%config(noreplace) %attr(644,root,fapolicyd) %{_sysconfdir}/%{name}/fapolicyd.rules
|
|
|
c6fc94a |
%config(noreplace) %attr(644,root,fapolicyd) %{_sysconfdir}/%{name}/fapolicyd.mounts
|
|
|
c6fc94a |
%attr(644,root,root) %{_unitdir}/fapolicyd.service
|
|
|
c6fc94a |
%attr(755,root,root) %{_sbindir}/fapolicyd
|
|
|
c6fc94a |
%attr(644,root,root) %{_mandir}/man8/*
|
|
|
c6fc94a |
%attr(644,root,root) %{_mandir}/man5/*
|
|
|
c6fc94a |
%ghost %{_localstatedir}/log/fapolicyd-access.log
|
|
|
c6fc94a |
|
|
|
c6fc94a |
%changelog
|
|
|
558f243 |
* Thu 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
|
|
|
c6fc94a |
|