|
|
d51d46 |
Summary: Application Whitelisting Daemon
|
|
|
d51d46 |
Name: fapolicyd
|
|
|
2e13dd |
Version: 0.9.1
|
|
|
2e13dd |
Release: 4%{?dist}
|
|
|
d51d46 |
License: GPLv3+
|
|
|
d51d46 |
URL: http://people.redhat.com/sgrubb/fapolicyd
|
|
|
d51d46 |
Source0: https://people.redhat.com/sgrubb/fapolicyd/%{name}-%{version}.tar.gz
|
|
|
d51d46 |
BuildRequires: kernel-headers
|
|
|
d51d46 |
BuildRequires: autoconf automake make gcc libtool
|
|
|
d51d46 |
BuildRequires: systemd-devel libgcrypt-devel rpm-devel file-devel
|
|
|
d51d46 |
BuildRequires: libcap-ng-devel libseccomp-devel lmdb-devel
|
|
|
d51d46 |
BuildRequires: python3-devel
|
|
|
2e13dd |
BuildRequires: python2-devel
|
|
|
d51d46 |
Requires(pre): shadow-utils
|
|
|
d51d46 |
Requires(post): systemd-units
|
|
|
d51d46 |
Requires(preun): systemd-units
|
|
|
d51d46 |
Requires(postun): systemd-units
|
|
|
d51d46 |
|
|
|
2e13dd |
Patch1: fapolicyd-rules.patch
|
|
|
2e13dd |
Patch2: fapolicyd-elf-parser.patch
|
|
|
dcf032 |
|
|
|
d51d46 |
%description
|
|
|
d51d46 |
Fapolicyd (File Access Policy Daemon) implements application whitelisting
|
|
|
d51d46 |
to decide file access rights. Applications that are known via a reputation
|
|
|
d51d46 |
source are allowed access while unknown applications are not. The daemon
|
|
|
d51d46 |
makes use of the kernel's fanotify interface to determine file access rights.
|
|
|
d51d46 |
|
|
|
2e13dd |
|
|
|
d51d46 |
%prep
|
|
|
d51d46 |
%setup -q
|
|
|
d51d46 |
|
|
|
2e13dd |
%patch1 -p1 -F3
|
|
|
2e13dd |
%patch2 -p1 -b .elf-parser
|
|
|
2e13dd |
|
|
|
2e13dd |
# generate rules for python
|
|
|
2e13dd |
sed -i "s/%python2_path%/`readlink -f %{__python2} | sed 's/\//\\\\\//g'`/g" init/%{name}.rules
|
|
|
2e13dd |
sed -i "s/%python3_path%/`readlink -f %{__python3} | sed 's/\//\\\\\//g'`/g" init/%{name}.rules
|
|
|
2e13dd |
sed -i "s/%ld_so_path%/`find /usr/lib64/ -type f -name 'ld-2\.*.so' | sed 's/\//\\\\\//g'`/g" init/%{name}.rules
|
|
|
d51d46 |
|
|
|
d51d46 |
%build
|
|
|
d51d46 |
./autogen.sh
|
|
|
d51d46 |
%configure --with-audit
|
|
|
d51d46 |
make CFLAGS="%{optflags}" %{?_smp_mflags}
|
|
|
d51d46 |
|
|
|
d51d46 |
%install
|
|
|
d51d46 |
make DESTDIR="%{buildroot}" INSTALL='install -p' install
|
|
|
d51d46 |
mkdir -p %{buildroot}/%{python3_sitelib}/dnf-plugins/
|
|
|
d51d46 |
install -p -m 644 dnf/%{name}-dnf-plugin.py %{buildroot}/%{python3_sitelib}/dnf-plugins/
|
|
|
d51d46 |
install -p -m 644 -D init/%{name}-tmpfiles.conf %{buildroot}/%{_tmpfilesdir}/%{name}.conf
|
|
|
d51d46 |
mkdir -p %{buildroot}/%{_localstatedir}/lib/%{name}
|
|
|
d51d46 |
mkdir -p %{buildroot}/run/%{name}
|
|
|
d51d46 |
|
|
|
d51d46 |
%pre
|
|
|
d51d46 |
getent passwd %{name} >/dev/null || useradd -r -M -d %{_localstatedir}/lib/%{name} -s /sbin/nologin -c "Application Whitelisting Daemon" %{name}
|
|
|
d51d46 |
|
|
|
d51d46 |
%post
|
|
|
d51d46 |
%systemd_post %{name}.service
|
|
|
d51d46 |
|
|
|
d51d46 |
%preun
|
|
|
d51d46 |
%systemd_preun %{name}.service
|
|
|
d51d46 |
|
|
|
d51d46 |
%postun
|
|
|
d51d46 |
%systemd_postun_with_restart %{name}.service
|
|
|
d51d46 |
|
|
|
d51d46 |
%files
|
|
|
d51d46 |
%doc README.md
|
|
|
d51d46 |
%{!?_licensedir:%global license %%doc}
|
|
|
d51d46 |
%license COPYING
|
|
|
d51d46 |
%attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}
|
|
|
d51d46 |
%config(noreplace) %attr(644,root,%{name}) %{_sysconfdir}/%{name}/%{name}.rules
|
|
|
d51d46 |
%config(noreplace) %attr(644,root,%{name}) %{_sysconfdir}/%{name}/%{name}.conf
|
|
|
d51d46 |
%attr(644,root,root) %{_unitdir}/%{name}.service
|
|
|
d51d46 |
%attr(644,root,root) %{_tmpfilesdir}/%{name}.conf
|
|
|
d51d46 |
%attr(755,root,root) %{_sbindir}/%{name}
|
|
|
d51d46 |
%attr(755,root,root) %{_sbindir}/%{name}-cli
|
|
|
d51d46 |
%attr(644,root,root) %{_mandir}/man8/*
|
|
|
d51d46 |
%attr(644,root,root) %{_mandir}/man5/*
|
|
|
d51d46 |
%attr(644,root,root) %{_mandir}/man1/*
|
|
|
d51d46 |
%ghost %{_localstatedir}/log/%{name}-access.log
|
|
|
d51d46 |
%attr(770,root,%{name}) %dir %{_localstatedir}/lib/%{name}
|
|
|
d51d46 |
%attr(770,root,%{name}) %dir /run/%{name}
|
|
|
d51d46 |
%ghost %{_localstatedir}/run/%{name}/%{name}.fifo
|
|
|
d51d46 |
%ghost %{_localstatedir}/lib/%{name}/data.mdb
|
|
|
d51d46 |
%ghost %{_localstatedir}/lib/%{name}/lock.mdb
|
|
|
d51d46 |
%{python3_sitelib}/dnf-plugins/%{name}-dnf-plugin.py
|
|
|
d51d46 |
%{python3_sitelib}/dnf-plugins/__pycache__/%{name}-dnf-plugin.*.pyc
|
|
|
d51d46 |
|
|
|
d51d46 |
%changelog
|
|
|
2e13dd |
* Tue Mar 03 2020 Radovan Sroka <rsroka@redhat.com> - 0.9.1-4
|
|
|
2e13dd |
RHEL 8.2 ERRATUM
|
|
|
2e13dd |
- fixed possible heap buffer overflow in elf parser
|
|
|
2e13dd |
Resolves: rhbz#1807912
|
|
|
2e13dd |
|
|
|
2e13dd |
* Tue Feb 11 2020 Radovan Sroka <rsroka@redhat.com> - 0.9.1-3
|
|
|
2e13dd |
RHEL 8.2 ERRATUM
|
|
|
2e13dd |
- fixed build time python interpreter detection (spec)
|
|
|
2e13dd |
- added python2-devel as a BuildRequires (spec)
|
|
|
2e13dd |
- allow running bash scripts in home directories
|
|
|
2e13dd |
Resolves: rhbz#1801872
|
|
|
2e13dd |
|
|
|
2e13dd |
* Wed Nov 20 2019 Radovan Sroka <rsroka@redhat.com> - 0.9.1-2
|
|
|
2e13dd |
RHEL 8.2 ERRATUM
|
|
|
2e13dd |
- rebase to v0.9.1
|
|
|
2e13dd |
- updated default configuration with new syntax
|
|
|
2e13dd |
- removed daemon mounts configuration
|
|
|
2e13dd |
Resolves: rhbz#1759895
|
|
|
2e13dd |
- default fapolicyd policy prevents Ansible from running
|
|
|
2e13dd |
- added ansible rule to default ruleset
|
|
|
2e13dd |
Resolves: rhbz#1746464
|
|
|
2e13dd |
- suspicious logs on service start
|
|
|
2e13dd |
Resolves: rhbz#1747494
|
|
|
2e13dd |
- fapolicyd blocks dracut from generating initramfs
|
|
|
2e13dd |
- added dracut rule to default configuration
|
|
|
2e13dd |
Resolves: rhbz#1757736
|
|
|
2e13dd |
- fapolicyd fails to identify perl interpreter
|
|
|
2e13dd |
Resolves: rhbz#1765039
|
|
|
dcf032 |
|
|
|
d51d46 |
* Wed Jul 24 2019 Radovan Sroka <rsroka@redhat.com> - 0.8.10-3
|
|
|
d51d46 |
- added missing manpage for fapolicyd-cli
|
|
|
d51d46 |
Resolves: rhbz#1708015
|
|
|
d51d46 |
|
|
|
d51d46 |
* Mon Jul 22 2019 Radovan Sroka <rsroka@redhat.com> - 0.8.10-2
|
|
|
d51d46 |
- Convert hashes to lowercase like sha256sum outputs
|
|
|
d51d46 |
- Stop littering STDOUT output for dnf plugin in fapolicyd
|
|
|
d51d46 |
Resolves: rhbz#1721496
|
|
|
d51d46 |
|
|
|
d51d46 |
* Tue Jun 18 2019 Radovan Sroka <rsroka@redhat.com> - 0.8.10-1
|
|
|
d51d46 |
- new upstream release
|
|
|
d51d46 |
Resolves: rhbz#1673323
|
|
|
d51d46 |
|
|
|
d51d46 |
* Mon May 06 2019 Radovan Sroka <rsroka@redhat.com> - 0.8.9-1
|
|
|
d51d46 |
- New upstream release
|
|
|
d51d46 |
- imported from fedora30
|
|
|
d51d46 |
resolves: rhbz#1673323
|
|
|
d51d46 |
|
|
|
d51d46 |
* Wed Mar 13 2019 Radovan Sroka <rsroka@redhat.com> - 0.8.8-2
|
|
|
d51d46 |
- backport some patches to resolve dac_override for fapolicyd
|
|
|
d51d46 |
|
|
|
d51d46 |
* Mon Mar 11 2019 Radovan Sroka <rsroka@redhat.com> - 0.8.8-1
|
|
|
d51d46 |
- New upstream release
|
|
|
d51d46 |
- Added new DNF plugin that can update the trust database when rpms are installed
|
|
|
d51d46 |
- Added support for FAN_OPEN_EXEC_PERM
|
|
|
d51d46 |
|
|
|
d51d46 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-3
|
|
|
d51d46 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
d51d46 |
|
|
|
d51d46 |
|
|
|
d51d46 |
* Wed Oct 03 2018 Steve Grubb <sgrubb@redhat.com> 0.8.7-1
|
|
|
d51d46 |
- New upstream bugfix release
|
|
|
d51d46 |
|
|
|
d51d46 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.6-2
|
|
|
d51d46 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
d51d46 |
|
|
|
d51d46 |
* Thu Jun 07 2018 Steve Grubb <sgrubb@redhat.com> 0.8.6-1
|
|
|
d51d46 |
- New upstream feature release
|
|
|
d51d46 |
|
|
|
d51d46 |
* Fri May 18 2018 Steve Grubb <sgrubb@redhat.com> 0.8.5-2
|
|
|
d51d46 |
- Add dist tag (#1579362)
|
|
|
d51d46 |
|
|
|
d51d46 |
* Fri Feb 16 2018 Steve Grubb <sgrubb@redhat.com> 0.8.5-1
|
|
|
d51d46 |
- New release
|