From nobody Fri Apr 26 19:47:11 2024 X-Original-To: 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 4VR3CP0P2rz5J6FN for ; Fri, 26 Apr 2024 19:47:13 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VR3CN4W8Mz46Q0 for ; Fri, 26 Apr 2024 19:47:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714160832; a=rsa-sha256; cv=none; b=U4PIG7AxVDl7XL/xFNIycsRK+7i/66w9mU8gI5tUIxICGM+bIcNL/DoyHQELWVx8IrMqag 7n6sAG8j/3lOMADavtU8VO9IDXzsesnM+xqqmC+g741vFKTgOv5QGmUuxHjKOCqwQHus7Q irj/MrQsmgXj8F6dWBKXaX3/Oro4fdyyzvTmtLpawNBEh7LnwhZG3rqC3l7p23KDhpILLt xUzTFRWkwdOoxbcZA3PJygI2KkFShzhvRJeTc6dJx38Q8IKejdmNeplYRzcaegJpgCOBat pnES1M/5saUPtNVNXUPj03wsxuzxH4rmNG0wtr6YvtvBTvavCad/4PciTRzs6A== 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=1714160832; 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=2+q2ML6kNiYjtt3dtZVPer1loAulqKXpejgiiRSiwQA=; b=OChYMcq7UvNmPm60xUQEAuh6BECeze7IQ32hw6AglwWUOHyq/Ij8Hc2scZvVvBEpPJG47/ zJs2WRxADWRiIXjW+bWmYZwBMunaTbIr2r0HtALVc/YKK1iSbqC6uJ1d+ImtYTcCY6lWTe zU8qSohunMpwsHUXulSAw/AIDAam4ytAND7JXcj5SjEyctVxUcM30sg4W7saRZj8wA/mV3 RO67jVdZK3KBKDa/O/q47W+0J7WIHV91w1VmscagsdlvDgQ6OUzHc4EpMWM35lDFI+C077 NUk/BpCtPMrgBn/pQiVKTEdMrNEeBjBlGcnd+87RgIh3pF5uWj2pWd0LAm1XWQ== 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 4VR3CN40jxzvvK for ; Fri, 26 Apr 2024 19:47:12 +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 43QJlCDw068667 for ; Fri, 26 Apr 2024 19:47:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43QJlCpV068660 for bugs@FreeBSD.org; Fri, 26 Apr 2024 19:47:12 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: bugs@FreeBSD.org Subject: [Bug 278595] rc.subr only reads in $_name in rc.conf.d Date: Fri, 26 Apr 2024 19:47:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 13.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd@gushi.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278595 Bug ID: 278595 Summary: rc.subr only reads in $_name in rc.conf.d Product: Base System Version: 13.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: freebsd@gushi.org This may also relate to 167822, and 205393. For us, it hit us when the sta= rtup script for kadmin could not detect that kdc_enable was set in /etc/rc.conf.d/kdc Right now, when we have rc.subr load a config, it only loads $_name in /etc/rc.conf.d -- this means that it cannot source the whole configration t= ree: # If a service name was specified, attempt to load # service-specific configuration if [ -n "$_name" ] ; then for _d in /etc ${local_startup}; do _d=3D${_d%/rc.d} if [ -f ${_d}/rc.conf.d/"$_name" ]; then debug "Sourcing ${_d}/rc.conf.d/$_name" . ${_d}/rc.conf.d/"$_name" elif [ -d ${_d}/rc.conf.d/"$_name" ] ; then local _rc for _rc in ${_d}/rc.conf.d/"$_name"/* ; do if [ -f "$_rc" ] ; then debug "Sourcing $_rc" . "$_rc" fi done fi done fi My proposal is that all files in /etc/rc.conf.d/* should in fact be sourced, just as we currently read in all of rc.conf, and don't limit it to $name_*. (I don't have a dog in tha particular way that this is done, so I'm not pus= hing a patch, but it seems fairly trivial. I mentioned this to cy@ in relation to kerberos and was asked to push a PR. --=20 You are receiving this mail because: You are the assignee for the bug.=