[Bug 267016] dns/knot-resolver: Fix file permissions to enable cache garbage collector

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 13 Oct 2022 13:12:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267016

            Bug ID: 267016
           Summary: dns/knot-resolver: Fix file permissions to enable
                    cache garbage collector
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: yonas.yanfa@gmail.com
                CC: freebsd@dns.company
             Flags: maintainer-feedback?(freebsd@dns.company)
                CC: freebsd@dns.company

I've added the following to /usr/local/etc/rc.d/krescachegc:

start_precmd="${name}_prestart"

krescachegc_prestart() {
    chmod 660 /var/run/kresd/*.mdb
}

It might be a temporary fix until /var/run/kresd/data.mdb and
/var/run/kresd/lock.mdb are created with proper file permissions.

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