Risk 3/5 · Elevated
arch-core.patch
Result #285
Comment
The patch changes logrotate targets from /var/log/pihole to /run/log/pihole and switches from copytruncate to create, which is a packaging/runtime behavior change but not inherently malicious. The added sudoers file grants the pihole user passwordless execution of /usr/bin/pihole as root, which is a significant privilege-escalation/persistence surface if the package installs that file or enables it automatically. However, in the provided diff hunk the sudoers file is only introduced as a template and there is no evidence here of automatic installation or additional commands beyond the expected pihole binary. Overall this is a moderate-risk change because it introduces a root-privilege mechanism that must be carefully justified and audited in surrounding packaging logic.
@@ -83,25 +83,25 @@ diff -uprN pi-hole-6.3/advanced/Templates/logrotate pi-hole-6.3.cust/advanced/Te
+/run/log/pihole/pihole.log {
# su #
daily
- copytruncate
-@@ -9,7 +9,7 @@
- nomail
+ create 640 pihole pihole
+@@ -13,7 +13,7 @@
}
-
+
+ # FTL.log and webserver.log are opened and closed for each line, therefore no postrotate is needed
-/var/log/pihole/FTL.log {
+/run/log/pihole/FTL.log {
# su #
weekly
- copytruncate
-@@ -20,7 +20,7 @@
+ create 640 pihole pihole
+@@ -24,7 +24,7 @@
nomail
}
-
+
-/var/log/pihole/webserver.log {
+/run/log/pihole/webserver.log {
# su #
weekly
- copytruncate
+ create 640 pihole pihole
diff -uprN pi-hole-6.3/advanced/Templates/pihole.sudo pi-hole-6.3.cust/advanced/Templates/pihole.sudo
--- pi-hole-6.3/advanced/Templates/pihole.sudo 1970-01-01 01:00:00.000000000 +0100
+++ pi-hole-6.3.cust/advanced/Templates/pihole.sudo 2025-11-27 23:02:14.748944993 +0100