sysforge

LOW
maintainer FrostyMalice 1 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The flagged pattern involves creating a directory and marker file for first-run setup, which is a benign self-managed state file and not a privileged or self-updating mechanism.

Triggered rules

Low AI review downgraded a static finding 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 90%): The flagged pattern involves creating a directory and marker file for first-run setup, which is a benign self-managed state file and not a privileged or self-updating mechanism.

1 higher static finding superseded - not the current verdict (shown for transparency)
Medium Privileged / out-of-pacman install (sudoers, setuid, or self-update) 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

1# Maintainer: Keith Raghubar <aur.archlinux.org.buckskin000@passmail.net>
2
3pkgname=sysforge
4pkgver=3.5.0
5pkgrel=1
6pkgdesc="Arch Linux build and maintenance suite for system setup and package management with compiler-optimized builds"
7arch=('any')
8url="https://github.com/KeithRaghubar/sysforge"
9license=('MIT')
10depends=(
11 'python>=3.11'
12 'git'
13 'sudo'
14 'gnupg'
15 'base-devel'
16)
17makedepends=(
18 'uv'
19 'python-installer'
20)
21optdepends=(
22 'bash-completion: bash tab completions'
23 'ccache: compiler cache support'
24 'sccache: Rust compiler cache support'
25 'uv: required for bootstrap pipeline (configure stage)'
26 'zsh: zsh shell support'
27 'glow: in-shell markdown rendering for docs'
28 'zsh-completions: additional zsh completions'
29 'clang: required for the LLVM build profile and sysforge run toolchain --compiler=llvm'
30 'lld: required for the optimized build profile (-fuse-ld=lld)'
31 'llvm: required for sysforge run toolchain --compiler=llvm (PGO bootstrap)'
32 'compiler-rt: required for sysforge run toolchain --compiler=llvm'
33 'mesa-utils: post-install mesa smoke check (eglinfo)'
34 'vulkan-tools: post-install mesa smoke check (vulkaninfo)'
35)
36conflicts=('sysforge-git')
37install=sysforge.install
38backup=(
39 'etc/sysforge/sysforge.toml'
40 'etc/sysforge/profiles.toml'
41 'etc/sysforge/packages.toml'
42 'etc/sysforge/kernel.toml'
43 'etc/sysforge/toolchain.toml'
44)
45# Maintainer release-signing key. Releases are GPG-signed (signed tag + detached
46# signature of the release tarball, uploaded to the GitHub release by
47# tools/release.sh); makepkg verifies the .asc below against this fingerprint.
48# REPLACE the sentinel with the real 40-hex fingerprint (gpg --fingerprint);
49# tools/release.sh refuses to publish while the sentinel is present.
50validpgpkeys=('23774499080F9288FEFB49CE7AAE22E6E1B4B22C')
51source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
52 "$pkgname-$pkgver.tar.gz.asc::$url/releases/download/v$pkgver/sysforge-$pkgver.tar.gz.asc")
53sha256sums=('a9e99f76a79b537af1e75f7578c4aeffd5857fb472b06d345e395769e6b288ed'
54 'SKIP')
55
56build() {
57 cd "$srcdir/$pkgname-$pkgver"
58 uv build --wheel
59}
60
61package() {
62 cd "$srcdir/$pkgname-$pkgver"
63 python -m installer --destdir="$pkgdir" dist/*.whl
64
65 # Man page
66 install -Dm644 man/sysforge.1 "$pkgdir/usr/share/man/man1/sysforge.1"
67
68 # Shell completions (bash + zsh; both shells are optdeps)
69 install -Dm644 completions/sysforge.bash \
70 "$pkgdir/usr/share/bash-completion/completions/sysforge"
71 install -Dm644 completions/_sysforge \
72 "$pkgdir/usr/share/zsh/site-functions/_sysforge"
73
74 # Default config files
75 local _conf="$pkgdir/etc/sysforge"
76 install -Dm644 etc/sysforge/sysforge.toml "$_conf/sysforge.toml"
77 install -Dm644 etc/sysforge/profiles.toml "$_conf/profiles.toml"
78 install -Dm644 etc/sysforge/packages.toml "$_conf/packages.toml"
79 install -Dm644 etc/sysforge/kernel.toml "$_conf/kernel.toml"
80 install -Dm644 etc/sysforge/toolchain.toml "$_conf/toolchain.toml"
81
82 # bootstrap.toml is per-host (device, hostname, passwords) — ship as an
83 # example template under /usr/share so iso-install.sh can detect a true
84 # prior run instead of always seeing the package-installed default.
85 install -Dm644 etc/sysforge/bootstrap.toml \
86 "$pkgdir/usr/share/sysforge/bootstrap.toml.example"
87
88 # The sysforge group owns sysforge's writable runtime dirs so the
89 # unprivileged build user (a member) can write state and the PGO cache
90 # across runs. systemd-sysusers creates it before systemd-tmpfiles runs.
91 install -Dm644 /dev/null "$pkgdir/usr/lib/sysusers.d/sysforge.conf"
92 printf 'g sysforge -\n' > "$pkgdir/usr/lib/sysusers.d/sysforge.conf"
93
94 # State directory (pipeline state, build state, logs) + sentinel subdir
95 # consumed by `sysforge update` from the libalpm hooks below.
96 # /var/cache/sysforge holds the regenerable PGO profdata store, written by
97 # the unprivileged toolchain build. All owned root:sysforge with setgid
98 # (2775) so group members can write and new subdirs inherit the group —
99 # the single ownership model shared with primitives/fs_provision.py.
100 install -Dm644 /dev/null "$pkgdir/usr/lib/tmpfiles.d/sysforge.conf"
101 {
102 printf 'd /var/lib/sysforge 2775 root sysforge -\n'
103 printf 'd /var/lib/sysforge/sentinels 2775 root sysforge -\n'
104 printf 'd /var/cache/sysforge 2775 root sysforge -\n'
105 printf 'd /var/cache/sysforge/llvm-pgo 2775 root sysforge -\n'
106 } > "$pkgdir/usr/lib/tmpfiles.d/sysforge.conf"
107
108 # Pacman PostTransaction hooks: kernel/toolchain reminders +
109 # build-state staleness signal consumed by `sysforge update`.
110 install -Dm644 etc/pacman.d/hooks/sysforge-kernel.hook \
111 "$pkgdir/usr/share/libalpm/hooks/sysforge-kernel.hook"
112 install -Dm644 etc/pacman.d/hooks/sysforge-toolchain.hook \
113 "$pkgdir/usr/share/libalpm/hooks/sysforge-toolchain.hook"
114 install -Dm644 etc/pacman.d/hooks/sysforge-buildstate.hook \
115 "$pkgdir/usr/share/libalpm/hooks/sysforge-buildstate.hook"
116 install -Dm644 etc/pacman.d/hooks/sysforge-artifacts.hook \
117 "$pkgdir/usr/share/libalpm/hooks/sysforge-artifacts.hook"
118 install -Dm755 tools/pacman-hook-helper.sh \
119 "$pkgdir/usr/lib/sysforge/pacman-hook-helper.sh"
120}
121

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 00:13:55 Low 2
2026-10-28 15:50:30 Medium 1
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 00:12:40 Low 2
2026-10-25 00:20:48 Low 2
2026-10-24 00:14:55 Low 2
2026-10-23 00:02:19 Low 2
2026-10-22 00:13:10 Low 2
2026-10-21 00:12:50 Low 2
2026-10-20 00:10:31 Low 2
2026-10-19 00:03:55 Low 2
2026-10-18 00:06:55 Low 2
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2
2026-10-15 00:28:05 Low 2
2026-10-14 00:06:47 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion