Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Jul 2024 09:28:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 280139] security/amavisd-new: fix filename of the rc scripts to comply to the rc scripting recommendations + service jails readiness
Message-ID:  <bug-280139-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280139

            Bug ID: 280139
           Summary: security/amavisd-new: fix filename of the rc scripts
                    to comply to the rc scripting recommendations +
                    service jails readiness
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: flo@FreeBSD.org
          Reporter: netchild@FreeBSD.org
          Assignee: flo@FreeBSD.org
             Flags: maintainer-feedback?(flo@FreeBSD.org)

Created attachment 251882
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D251882&action=
=3Dedit
rename start script to comply to rc recommendations + service jails readine=
ss

Hi,

The attached patch fixes some issues with the rc script.

A generic discussion about the rc scripts in the ports collection which
contains a lot more background information about the "why" of this patch is=
 at=20
    https://lists.freebsd.org/archives/freebsd-ports/2024-July/006342.html

Short:
 - the filename shall be the same as the content of the name variable inside
the script
 - (already OK) PROVIDE shall be the same as the content of the name variab=
le
inside the script
 - this fixes the use of the script with service jails (new feature in
-current)

Additionally to what is discussed there and fixed in the patch, I made the
following additional changes:
 - add an UPATING entry (date needs to be adapted, this may conflict at the
time when you apply/commit)
 - add service jails options to the scripts to enable the use in service ja=
ils
(new feature in -current)
   the svcj_options allow the use of the host-network, if you want to allow
sysvipc you need to replace
   "net_basic" with "net_basic sysvipc" (inherits/shares the sysv stuff,
"sysipcnew" if the sysvipc parts shall be uniq to the specific service)
   if no network access is required for a service, you can set it hard to e=
mpty
(amavisX_YYY_svcj_options=3D"")

The service jails part will not cause issues when service jails are not
enabled. If amavis works inside a jail, it will work inside service jails t=
oo,
the only question is which kind of jail permissions need to be enabled for =
the
services. The handbook has more info about service jails:
    https://docs.freebsd.org/en/books/handbook/jails/#service-jails
    https://docs.freebsd.org/en/articles/rc-scripting/#rcng-service-jails

You may want to run the following before applying the patch:
    git mv security/amavisd-new/files/amavisd-snmp.in
$security/amavisd-new/files/amavisd-snmp.in=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20
    git mv security/amavisd-new/files/amavis-p0fanalyzer.in
security/amavisd-new/files/amavis_p0fanalyzer.in=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20

Bye,
Alexander.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280139-7788>