sysforge
The .install script creates a notice file in a privileged directory but does not perform any privileged modification, self-update, or setuid binary installation; it is a benign first-run marker handled safely with best-effort permissions.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The .install script creates a notice file in a privileged directory but does not perform any privileged modification, self-update, or setuid binary installation; it is a benign first-run marker handled safely with best-effort permissions.
1 higher static finding superseded - not the current verdict (shown for transparency)
privileged_install
The package grants elevated privileges or installs an update path outside pacman: a /etc/sudoers.d rule (often passwordless), a setuid/setgid binary, or a self-update script/service that can fetch and run future code with no checksum verification. The initial install may be verified, but the ongoing privilege + update surface is a real supply-chain / privilege-escalation risk.
-
.install:13
install -d -m 2775 /var/lib/sysforge 2>/dev/null || mkdir -p /var/lib/sysforge
PKGBUILD
# Maintainer: Keith Raghubar <aur.archlinux.org.buckskin000@passmail.net>
pkgname=sysforge
pkgver=3.2.0
pkgrel=1
pkgdesc="Arch Linux build and maintenance suite for system setup and package management with compiler-optimized builds"
arch=('any')
url="https://github.com/KeithRaghubar/sysforge"
license=('MIT')
depends=(
'python>=3.11'
'git'
'sudo'
'gnupg'
'base-devel'
)
makedepends=(
'uv'
'python-installer'
)
optdepends=(
'bash-completion: bash tab completions'
'ccache: compiler cache support'
'sccache: Rust compiler cache support'
'uv: required for bootstrap pipeline (configure stage)'
'zsh: zsh shell support'
'glow: in-shell markdown rendering for docs'
'zsh-completions: additional zsh completions'
'clang: required for the LLVM build profile and sysforge run toolchain --compiler=llvm'
'lld: required for the optimized build profile (-fuse-ld=lld)'
'llvm: required for sysforge run toolchain --compiler=llvm (PGO bootstrap)'
'compiler-rt: required for sysforge run toolchain --compiler=llvm'
)
conflicts=('sysforge-git')
install=sysforge.install
backup=(
'etc/sysforge/sysforge.toml'
'etc/sysforge/profiles.toml'
'etc/sysforge/packages.toml'
'etc/sysforge/kernel.toml'
'etc/sysforge/toolchain.toml'
)
# Maintainer release-signing key. Releases are GPG-signed (signed tag + detached
# signature of the release tarball, uploaded to the GitHub release by
# tools/release.sh); makepkg verifies the .asc below against this fingerprint.
# REPLACE the sentinel with the real 40-hex fingerprint (gpg --fingerprint);
# tools/release.sh refuses to publish while the sentinel is present.
validpgpkeys=('23774499080F9288FEFB49CE7AAE22E6E1B4B22C')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
"$pkgname-$pkgver.tar.gz.asc::$url/releases/download/v$pkgver/sysforge-$pkgver.tar.gz.asc")
sha256sums=('9bc7d71ab9ba61f196f1c8d2c074de71ac9068c72dc07f714c0066e22f2d377d'
'SKIP')
build() {
cd "$srcdir/$pkgname-$pkgver"
uv build --wheel
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
# Man page
install -Dm644 man/sysforge.1 "$pkgdir/usr/share/man/man1/sysforge.1"
# Shell completions (bash + zsh; both shells are optdeps)
install -Dm644 completions/sysforge.bash \
"$pkgdir/usr/share/bash-completion/completions/sysforge"
install -Dm644 completions/_sysforge \
"$pkgdir/usr/share/zsh/site-functions/_sysforge"
# Default config files
local _conf="$pkgdir/etc/sysforge"
install -Dm644 etc/sysforge/sysforge.toml "$_conf/sysforge.toml"
install -Dm644 etc/sysforge/profiles.toml "$_conf/profiles.toml"
install -Dm644 etc/sysforge/packages.toml "$_conf/packages.toml"
install -Dm644 etc/sysforge/kernel.toml "$_conf/kernel.toml"
install -Dm644 etc/sysforge/toolchain.toml "$_conf/toolchain.toml"
# bootstrap.toml is per-host (device, hostname, passwords) — ship as an
# example template under /usr/share so iso-install.sh can detect a true
# prior run instead of always seeing the package-installed default.
install -Dm644 etc/sysforge/bootstrap.toml \
"$pkgdir/usr/share/sysforge/bootstrap.toml.example"
# The sysforge group owns sysforge's writable runtime dirs so the
# unprivileged build user (a member) can write state and the PGO cache
# across runs. systemd-sysusers creates it before systemd-tmpfiles runs.
install -Dm644 /dev/null "$pkgdir/usr/lib/sysusers.d/sysforge.conf"
printf 'g sysforge -\n' > "$pkgdir/usr/lib/sysusers.d/sysforge.conf"
# State directory (pipeline state, build state, logs) + sentinel subdir
# consumed by `sysforge update` from the libalpm hooks below.
# /var/cache/sysforge holds the regenerable PGO profdata store, written by
# the unprivileged toolchain build. All owned root:sysforge with setgid
# (2775) so group members can write and new subdirs inherit the group —
# the single ownership model shared with primitives/fs_provision.py.
install -Dm644 /dev/null "$pkgdir/usr/lib/tmpfiles.d/sysforge.conf"
{
printf 'd /var/lib/sysforge 2775 root sysforge -\n'
printf 'd /var/lib/sysforge/sentinels 2775 root sysforge -\n'
printf 'd /var/cache/sysforge 2775 root sysforge -\n'
printf 'd /var/cache/sysforge/llvm-pgo 2775 root sysforge -\n'
} > "$pkgdir/usr/lib/tmpfiles.d/sysforge.conf"
# Pacman PostTransaction hooks: kernel/toolchain reminders +
# build-state staleness signal consumed by `sysforge update`.
install -Dm644 etc/pacman.d/hooks/sysforge-kernel.hook \
"$pkgdir/usr/share/libalpm/hooks/sysforge-kernel.hook"
install -Dm644 etc/pacman.d/hooks/sysforge-toolchain.hook \
"$pkgdir/usr/share/libalpm/hooks/sysforge-toolchain.hook"
install -Dm644 etc/pacman.d/hooks/sysforge-buildstate.hook \
"$pkgdir/usr/share/libalpm/hooks/sysforge-buildstate.hook"
install -Dm644 etc/pacman.d/hooks/sysforge-artifacts.hook \
"$pkgdir/usr/share/libalpm/hooks/sysforge-artifacts.hook"
install -Dm755 tools/pacman-hook-helper.sh \
"$pkgdir/usr/lib/sysforge/pacman-hook-helper.sh"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |