Bug 279632

Summary: dns/knot-resolver: make the rc script service jails aware
Product: Ports & Packages Reporter: Alexander Leidinger <netchild>
Component: Individual Port(s)Assignee: Alexander Leidinger <netchild>
Status: Closed FIXED    
Severity: Affects Some People CC: freebsd
Priority: --- Flags: freebsd: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
make the rc script service jails aware none

Description Alexander Leidinger freebsd_committer freebsd_triage 2024-06-10 10:56:30 UTC
Created attachment 251346 [details]
make the rc script service jails aware

Hi,

attached is a mechanical patch (untested) which makes the rc.d script service jails ready. This is a new feature in -current.

The setup I've chosen is to allow ipv4/ipv6 access. It does not allow to use sysv IPC in a jail. IF you want to add this possibility, the config would need to be changed to "net_basic sysvipc" instead. The config can be overridden in rc.conf.

See also:
  https://docs.freebsd.org/en/books/handbook/jails/#service-jails
  https://docs.freebsd.org/en/articles/rc-scripting/#rcng-service-jails

Bye,
Alexander.
Comment 1 Leo Vandewoestijne 2024-06-19 14:53:35 UTC
LGTM
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-06-23 16:48:23 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d81ae4eeae5186f187f65060da1164114236106a

commit d81ae4eeae5186f187f65060da1164114236106a
Author:     Alexander Leidinger <netchild@FreeBSD.org>
AuthorDate: 2024-06-23 16:43:51 +0000
Commit:     Alexander Leidinger <netchild@FreeBSD.org>
CommitDate: 2024-06-23 16:43:51 +0000

    dns/knot-resolver: make the rc scripts service jails aware

    PR:             279632
    Approved by:    maintainer

 dns/knot-resolver/Makefile             | 1 +
 dns/knot-resolver/files/krescachegc.in | 1 +
 dns/knot-resolver/files/kresd.in       | 1 +
 3 files changed, 3 insertions(+)