[Bug 273088] [patch] /etc/periodic/weekly/340.noid: extend to support /etc/jail.conf.d/ exclusions

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 12 Aug 2023 20:31:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273088

            Bug ID: 273088
           Summary: [patch] /etc/periodic/weekly/340.noid: extend to
                    support /etc/jail.conf.d/ exclusions
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: wcarson.bugzilla@disillusion.net

Created attachment 244040
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=244040&action=edit
Extend /etc/periodic/weekly/340.noid to support /etc/jail.conf.d

The current /etc/periodic/weekly/340.noid script excludes jail paths it finds
in /etc/jail.conf, but does not check jail configs in /etc/jail.conf.d/, so I
added that in this patch. I thought about enumerating ${jail_list} but that
only includes enabled jails, and in the case of /etc/jail.conf you may parse it
multiple times, so you'd have to check for that, too. Just searching
/etc/jail.conf and /etc/jail.conf.d/*.conf seemed simpler.

-- 
You are receiving this mail because:
You are the assignee for the bug.