From nobody Sun Mar 23 07:03:43 2025 X-Original-To: rc@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 4ZL6bg6nTBz5rrKg for ; Sun, 23 Mar 2025 07:03:43 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZL6bg69P6z3VX4 for ; Sun, 23 Mar 2025 07:03:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1742713423; 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=1qG2YgncU4aGaCnvnFZO8/AB2X2nOth9dlDzWZ+o3l4=; b=WWKHedbhCS19ykuI7L5BA6TSTtu2ZcEywhOauPqYzkM5uRdURR2Z//G3Zet4NSHGZ+to7T s4uKYUjDzn87PP7NvnCrDheZA6/xDxSmFYX83KE90hn544qHdKk5j9+rWr28CNLtEFTabL XiiZLxusaJ1FW1vCSeWhY3e20aT9ub9EcQkrbeEAw6CDIaYRPHvCSzGt5V71jAF7O2DPOu eYGuKMVrP8KeaINQnhcR7iYExdmq6qeaRSnECHC443r8koGg+wat7XsaUtXraaABmdHOzd MKmTjJc0S4VXwbxNF6V0QGRP0TCWUmWDmgcy43Hw5GfjCNCHnE+lbTda4zTUZw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1742713423; a=rsa-sha256; cv=none; b=BOcThTViV1tSrHRFG/U0+U/kFUjv5IFF426UVLu5m6tC443sEbybM/tAx+7qae6tK/VEid E33E4cpYZ5HB05M2ac+H1V1VWM5wRVnSFGGL9mCj7yrRSGHI61bKTQrUAQA3s/ojI9lL5o OHUpHdGTsghBinKd33ZeSde1p3pMjOHS8BuFCdT5z6OGdlz8yxVK9ifxfKEyPBT8gOzDrQ +PLFI36fVs6Oxfwy+G0i6U/K5rDzcxLd6z4gKQmzjvFx1nsglC2FgWtcKejSHzTkY/1ab3 Ad36iLqFYufealUwWR0N1huCtuybFuv02exRwdC4Lq6V/pik3bMI1cPjrxafOg== 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=1742713423; 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=1qG2YgncU4aGaCnvnFZO8/AB2X2nOth9dlDzWZ+o3l4=; b=Zb+/CqXQvxHvQ9dXrQaBMLJ3ELVbqboB6RxTLiVXv1+weRmF2klWcuhfyzLINzjIakY0PI iwvECTl4OeVyqLk09fqQbv019nZL5XgILIEzr01Tdh3XspB5e2Ov4HO5ChCCVPq3IYOT6r PPdHOfaQtFr+oQKd/2ea1EBCUsYFz+MvUVEzP4UfcseVw2vxS7n0XySNwINl3Ky/+/QXiS /j9Bd9P9XsxznUThFBDhmQEEdR/GySO/i4ISAGSgNihKMI05Z8MhDdN0/Czog11L8VjhYN 6LryPihNXv/jxvZU1SySYcJi5S1wC9vrp5H1VYlXEPjxrhqKJf7pt2aON1W26w== 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 4ZL6bg5hYKzxnK for ; Sun, 23 Mar 2025 07:03:43 +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 52N73h81090298 for ; Sun, 23 Mar 2025 07:03:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52N73h8b090297 for rc@FreeBSD.org; Sun, 23 Mar 2025 07:03:43 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: rc@FreeBSD.org Subject: [Bug 285600] rc.d/ftpd: ftpd_flags not working Date: Sun, 23 Mar 2025 07:03:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jlduran@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rc@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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion related to /etc/rc.d design and implementation List-Archive: https://lists.freebsd.org/archives/freebsd-rc List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-rc@freebsd.org Sender: owner-freebsd-rc@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285600 Bug ID: 285600 Summary: rc.d/ftpd: ftpd_flags not working Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: rc@FreeBSD.org Reporter: jlduran@FreeBSD.org Created attachment 258934 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D258934&action= =3Dedit rc.d: Fix ftpd flags After f99f0ee14e3a ("rc.d: add a service jails config to all base system services"), the FTP service ignores the flags configured in ftpd_flags: # sysrc ftpd_flags=3D-B ftpd_flags: -> -B # service ftpd enable ftpd enabled in /etc/rc.conf # service ftpd start Starting ftpd. # pgrep -fl ftpd 1234 /usr/libexec/ftpd -D Notice the absence of the "-B" flag. Attached is a proposed patch. Also tested as a service jail: # sysrc ftpd_flags=3D-B ftpd_flags: -> -B # sysrc ftpd_svcj=3DYES ftpd_svcj: -> YES # service ftpd enable ftpd enabled in /etc/rc.conf # service ftpd start Starting ftpd. # pgrep -fl ftpd 1234 /usr/libexec/ftpd -D -B # pgrep -j1 -fl ftpd 1234 /usr/libexec/ftpd -D -B --=20 You are receiving this mail because: You are the assignee for the bug.=