gnome-night-shift-git

LOW
maintainer christophermca 0 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The flagged privileged installs are systemd user services and scripts that run without elevated privileges; they are part of the package's normal functionality and do not represent a security risk.

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 95%): The flagged privileged installs are systemd user services and scripts that run without elevated privileges; they are part of the package's normal functionality and do not represent a security risk.

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.

  • PKGBUILD:32 install -Dm644 $srcdir/$pkgname/app/home/config/systemd/user/auto-update-gnome-theme.service "$pkgdir/usr/lib/systemd/user/auto-update-gnome-theme.service"
  • PKGBUILD:33 install -Dm644 $srcdir/$pkgname/app/home/config/systemd/user/auto-update-gnome-theme.path "$pkgdir/usr/lib/systemd/user/auto-update-gnome-theme.path"
  • PKGBUILD:42 install -Dm755 $srcdir/$pkgname/app/home/local/bin/auto-update-gnome-theme.sh "$pkgdir/usr/lib/gnome-night-shift/bin/auto-update-gnome-theme.sh"
  • .install:4 echo -e "\`systemctl --user enable --now gnome-night-shift.timer get-sunrise-sunset.timer auto-update-gnome-theme\`"

PKGBUILD

3 offending line(s) highlighted
1# Maintainer: Christopher McAdams <mca.christopher@gmail.com>
2pkgname="gnome-night-shift-git"
3pkgver=r24.53b3991
4pkgrel=2
5pkgdesc="::Rolling release:: A Small utility that runs in the background changes to dark mode when the sunsets and light mode when the sunrises"
6arch=('any')
7url="https://github.com/christophermca/gnome-night-shift"
8license=('GPL-1.0-or-later')
9makedepends=('git')
10provides=('get-sunrise-sunset.service' 'get-sunrise-sunset.timer' 'gnome-night-shift.service' 'gnome-night-shift.timer' 'auto-update-gnome-theme.path' 'auto-update-gnome-theme.service')
11conflicts=(
12 'gnome-shell-extension-night-shift-git'
13 'gnome-mode-shift-git'
14 'alacritty-use-theme-with-redshift'
15 'alacritty-use-theme-with-redshift-git')
16source=("$pkgname::git+https://github.com/christophermca/gnome-night-shift.git/")
17sha256sums=('SKIP')
18depends=( 'bash' 'python' )
19
20pkgver() {
21 cd "$pkgname"
22 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
23}
24
25 package() {
26 cd "$pkgname"
27 # options and directives that can be overridden
28 pkgdesc="::Rolling release:: Changes gnomes perferred mode based on sunrise/sunset"
29 install=gnome-night-shift-git.install
30
31 # systemd units
32 install -Dm644 $srcdir/$pkgname/app/home/config/systemd/user/auto-update-gnome-theme.service "$pkgdir/usr/lib/systemd/user/auto-update-gnome-theme.service"
33 install -Dm644 $srcdir/$pkgname/app/home/config/systemd/user/auto-update-gnome-theme.path "$pkgdir/usr/lib/systemd/user/auto-update-gnome-theme.path"
34
35 install -Dm644 $srcdir/$pkgname/app/home/config/systemd/user/get-sunrise-sunset.service "$pkgdir/usr/lib/systemd/user/get-sunrise-sunset.service"
36 install -Dm644 $srcdir/$pkgname/app/home/config/systemd/user/get-sunrise-sunset.timer "$pkgdir/usr/lib/systemd/user/get-sunrise-sunset.timer"
37
38 install -Dm644 $srcdir/$pkgname/app/home/config/systemd/user/gnome-night-shift.service "$pkgdir/usr/lib/systemd/user/gnome-night-shift.service"
39 install -Dm644 $srcdir/$pkgname/app/home/config/systemd/user/gnome-night-shift.timer "$pkgdir/usr/lib/systemd/user/gnome-night-shift.timer"
40
41 # scripts
42 install -Dm755 $srcdir/$pkgname/app/home/local/bin/auto-update-gnome-theme.sh "$pkgdir/usr/lib/gnome-night-shift/bin/auto-update-gnome-theme.sh"
43 install -Dm755 $srcdir/$pkgname/app/home/local/bin/get-sunrise-sunset.py "$pkgdir/usr/lib/gnome-night-shift/bin/get-sunrise-sunset.py"
44 install -Dm755 $srcdir/$pkgname/app/home/local/bin/is_day_or_night.sh "$pkgdir/usr/lib/gnome-night-shift/bin/is_day_or_night.sh"
45
46 # vars
47 install -Dm644 $srcdir/$pkgname/app/home/local/gnome-night-shift/shared-variables.sh "$pkgdir/usr/lib/gnome-night-shift/shared-variables.sh"
48 }
49

Changes since previous scan

--- PKGBUILD @ 2026-09-02 00:02
+++ PKGBUILD @ 2026-09-17 00:27
@@ -2,13 +2,15 @@
pkgname="gnome-night-shift-git"
pkgver=r24.53b3991
pkgrel=2
-pkgdesc="::Rolling release:: A Small utility to switch the selected preferred mode."
+pkgdesc="::Rolling release:: A Small utility that runs in the background changes to dark mode when the sunsets and light mode when the sunrises"
arch=('any')
url="https://github.com/christophermca/gnome-night-shift"
license=('GPL-1.0-or-later')
makedepends=('git')
provides=('get-sunrise-sunset.service' 'get-sunrise-sunset.timer' 'gnome-night-shift.service' 'gnome-night-shift.timer' 'auto-update-gnome-theme.path' 'auto-update-gnome-theme.service')
-conflicts=( 'gnome-mode-shift-git'
+conflicts=(
+ 'gnome-shell-extension-night-shift-git'
+ 'gnome-mode-shift-git'
'alacritty-use-theme-with-redshift'
'alacritty-use-theme-with-redshift-git')
source=("$pkgname::git+https://github.com/christophermca/gnome-night-shift.git/")

Scan history

Scanned at (UTC)SeverityRules
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 17:51:12 Medium 1
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

Report a package

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

0 / 4000
Your suggestion