From nobody Fri Jul 05 09:00:16 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 4WFnXc2wVjz5Nk1S for ; Fri, 05 Jul 2024 09:00:16 +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 4WFnXc0t6pz4mv1 for ; Fri, 5 Jul 2024 09:00:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720170016; a=rsa-sha256; cv=none; b=fryP+kxm5fMV760EGedOR5Q0XuzJo/jVPetGbyRTmMCvuABvJsSaPP/+Z4WWymXOS/+sFe Dx4SuCPKdfWBJFI7JQigWL8yKHDmkpHW0dJrGq8bIQMBFTnkbi7wpXiE576mi8xihuyuBu g9KH9RJ3wDaRK24lq1GbOE4lAxqWmxhOFrgq+pcITUMXSbrZTZDa2wDVengnq4IFGr7bHo eeUMIWdl/tdyNpP5A9V+baM6LvBu5TdBSsx0CmvSjiaujgOZ6x6hot8Qmyl+RWgtjdbNBO qmdqpDV35+wZD1UnlnUqE2Jn2iGxCvSF6Am9EaqoDRGCYS/Ck6cPTYfHUUAVtg== 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=1720170016; 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=WMkZTy+IDObPGWjUVFbg3/dFLJqF+USLXPHMHg2Q5wU=; b=Vow5Awvlo6XzAlsMtWESsLZaMcT+O50Gv5gJ+SByMYdonMAxXOcYkiVqN76sfKR/DdM0aP qQifXJgH0FcjK42O9QaoICpCEl8LilRA6NsKV8uODx4jaatx0gwPkHRFPxQuJCETLCr9S+ FtC/kBv4w3diiiWlTxgpdzJDN3UcHZaI7HRw+8HXC/lAckoEMTpAvpHa7OgZCNSIKrxG4X cw+HJ+9lXWwdo8sYOnqXJjWLe/BmLBRJbndM3BkqVHlL/JDH650YGjfoOsbzvRUWy1sKu2 /525G+IFJsp9ADSKA/Qe/WOt3XJ/NpOBi8TRP4BYZEUSykCWQC2kEb09p5EfDw== 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 4WFnXc0Jslzr4k for ; Fri, 5 Jul 2024 09:00:16 +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 46590F7R046993 for ; Fri, 5 Jul 2024 09:00:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46590Fqm046992 for ports-bugs@FreeBSD.org; Fri, 5 Jul 2024 09:00:15 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 280137] security/bacula15-server: fix filename of the rc scripts to comply to the rc scripting recommendations + service jails options Date: Fri, 05 Jul 2024 09:00:16 +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: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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=3D280137 Bug ID: 280137 Summary: security/bacula15-server: fix filename of the rc scripts to comply to the rc scripting recommendations + service jails options Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: netchild@FreeBSD.org Created attachment 251879 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D251879&action= =3Dedit rename rc scripts to comply to recommendations 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 (bacula_XXX_svcj_options=3D"") The service jails part will not cause issues when service jails are not enabled. If bacula 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: for d in sysutils/bacula*-server/files; do=20=20=20=20=20=20 git mv $d/bacula-dir.in $d/bacula_dir.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 git mv $d/bacula-sd.in $d/bacula_sd.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=20 done Bye, Alexander. --=20 You are receiving this mail because: You are the assignee for the bug.=