From nobody Fri Jul 05 09:28:19 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WFp901qGTz5NnRQ for ; Fri, 05 Jul 2024 09:28:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WFp900KRwz4rD1 for ; Fri, 5 Jul 2024 09:28:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720171700; a=rsa-sha256; cv=none; b=Zrmo3PyjzxbbgOQYGNsFS0dst5UvJJdpC0Q8bo1hu61B4+Kb5oLx872NflM/m0cNTnnFHO MGAEoFbbLwkD1LLY+iJjQK1R6XPOZzey89S6qfHeUMCBh2tb7w/McDOp1vIEqLnMEM6h/6 tuHuRU9O8Atu65YQw27/Bnd9TZmtpy2LEL9RddfVuI9+2ZgkyRYsy9vU2LgemGbUERRiNK WlYryF0v8swtmiroENofsOZCkUhtiV6YLZJSylrWUycbf9pS5npd5i+6k2eiMHNTnJggNi S47q3ulXuyALcAG5w9wdWLctb1Aqfrk4DUQCQfBDOgP+WKU//sss3ttsXfyqrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1720171700; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LPkWdFcoMcY86xuPjZARyTxGoMNuV6v0a0Jp2p9qT9A=; b=I8NZWZSLk3mXgQWYoJ0I82F76cO6Fo6vKKKwM6lJwJRNMa0sUTsOPS0OuSUnd7SzNjClyI C3L7Q2AJRo4pZ7TriTgmpUVcqh4buV8oKmBe9qHYoHtAz8W2ZqL4HAmmZB2AyNwQiLB7wr JcvGsLiceyAHowAust9bW1efOWxSrjyZy2TbymZsw2fGqXLjMHvthxm+xov5ev2az7MbV/ 6AVCaajqw1QZPFj+seuZCA8gb2nTJ7Xon54A8K/WRdZtyNyhZchxztUO/SLMvSznrAO2Jk 0mQWpmNl2beHBkViK7Vkd244yuXnToyvzZwP7DvfBW/S5WgvQMXeFwtCz3YRTA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WFp8z6wk4zrgr for ; Fri, 5 Jul 2024 09:28:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4659SJ0s061888 for ; Fri, 5 Jul 2024 09:28:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4659SJRa061887 for ports-bugs@FreeBSD.org; Fri, 5 Jul 2024 09:28:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Fri, 05 Jul 2024 09:28:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: netchild@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: flo@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 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.=