fapolicyd
LOW
maintainer fuero
0 votes
scanned 2026-09-03 05:52:26.228347
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Fuero <fuerob@gmail.com>
2
3
pkgname=fapolicyd
4
pkgver=2.0.1
5
_pkgver=v${pkgver}
6
pkgrel=1
7
pkgdesc='File Access Policy Daemon'
8
arch=(x86_64)
9
url='https://github.com/linux-application-whitelisting/fapolicyd'
10
license=(GPL-3)
11
backup=("etc/${pkgname}/${pkgname}.conf")
12
makedepends=(autoconf automake gcc)
13
depends=(uthash)
14
source=("${pkgname}-${_pkgver}.tar.gz::${url}/archive/refs/tags/${_pkgver}.tar.gz")
15
sha256sums=('2db6d2d69c62945a971670b80ac72779609ebad93240de82ca902d01a679ceab')
16
17
build() {
18
cd "${pkgname}-${pkgver}"
19
autoreconf -fv --install
20
./configure \
21
--prefix=/usr \
22
--sbindir=/usr/bin \
23
--sysconfdir=/etc \
24
--without-rpm \
25
--with-audit
26
make
27
}
28
29
check() {
30
cd "${pkgname}-${pkgver}"
31
make -k check
32
}
33
34
package() {
35
cd "${pkgname}-${pkgver}"
36
make DESTDIR="${pkgdir}" install
37
install -p -m 644 -D init/${pkgname}-tmpfiles.conf "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
38
echo "d /var/lib/${pkgname} 0700 ${pkgname} ${pkgname} - -" >> "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
39
install -dpm 0755 "${pkgdir}/etc/${pkgname}/rules.d"
40
install -dpm 0755 "${pkgdir}/etc/${pkgname}/trust.d"
41
install -Dpm 0640 <(\
42
cat <<<"u ${pkgname} - \"${pkgname} daemon user\" /var/lib/${pkgname} /usr/bin/nologin" \
43
) "${pkgdir}/etc/sysusers.d/${pkgname}.conf"
44
45
cat > ${pkgdir}/usr/share/${pkgname}/sample-rules/21-updaters.rules <<-'EOF'
46
allow perm=open exe=/usr/bin/pacman : all
47
allow perm=open exe=/usr/bin/yay : all
48
EOF
49
50
(
51
cd ${pkgdir}
52
for i in $(ls usr/share/${pkgname}/sample-rules/*.rules)
53
do
54
ln -snf "/${i}" "etc/${pkgname}/rules.d/$(basename "${i}")"
55
done
56
rm -f etc/${pkgname}/rules.d/95-allow-open.rules
57
)
58
for i in NEWS README.md TODO AUTHORS COPYING ChangeLog
59
do
60
install -Dp "${i}" "${pkgdir}/usr/share/doc/${pkgname}/${i}"
61
done
62
}
63
64
# getver: github.com/linux-application-whitelisting/fapolicyd/releases
65
# vim: ts=2 sw=2 et:
66
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-03 05:52:26 | Low | 1 |