From 1491c2dda33eabbc5e0de36ca7c6555ab8aec395 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 15 Sep 2026 00:03:08 -0400 Subject: sbopkglint: do not allow /etc/rc.d/rc.local{,_shutdown}. --- NEWS | 2 ++ sbopkglint.d/05-basic-sanity.t.sh | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index a339608..30a3df3 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,8 @@ sbopkglint: - Only empty (0-byte) files named *.new may exist in /var/log. - The directories /var/lib/pkgtools/{scripts,douninst.sh,packages} may not exist in the package tarball. +- Packages may not contain /etc/rc.d/rc.local or rc.local_shutdown, + *or* modify them via doinst.sh. New in 0.9.8: ============= diff --git a/sbopkglint.d/05-basic-sanity.t.sh b/sbopkglint.d/05-basic-sanity.t.sh index 79c75c7..50c5c10 100644 --- a/sbopkglint.d/05-basic-sanity.t.sh +++ b/sbopkglint.d/05-basic-sanity.t.sh @@ -69,7 +69,9 @@ etc/group \ etc/group.new \ etc/gshadow \ etc/gshadow.new \ -etc/ld.so.conf" +etc/ld.so.conf \ +etc/rc.d/rc.local \ +etc/rc.d/rc.local_shutdown" ####################################################################### -- cgit v1.2.3