From nobody Wed Apr 13 12:04:26 2022 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 DAE791B01F9F for ; Wed, 13 Apr 2022 12:04:27 +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 4Kdh8q57f7z3khj for ; Wed, 13 Apr 2022 12:04:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 8CF5539B2 for ; Wed, 13 Apr 2022 12:04:27 +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 23DC4RvC025414 for ; Wed, 13 Apr 2022 12:04:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23DC4R7P025413 for rc@FreeBSD.org; Wed, 13 Apr 2022 12:04:27 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 235185] /etc/rc.d/ environment may need to be cleaned vs services(8) Date: Wed, 13 Apr 2022 12:04:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kwiat3k@panic.pl X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: rgrimes@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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: 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: Sender: owner-freebsd-rc@freebsd.org X-BeenThere: freebsd-rc@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649851467; 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: in-reply-to:in-reply-to:references:references; bh=CCjFmDmcKotDTrrFdSqrOhe8I1itz9ubmiBs2djDsqY=; b=n4fg5fi588cDpnQSz18+xz3t6QRhv1iBMy3BfQYiFPbqFsp/0ehiOztQyMAQYWRrEdfXuc GHlbR4GS9hpG6PIktzzfn+YJz4OPSkn3DHQxeRgIz3/DWp98CDUTqv3HT7XPBLS5B+aUQr 90aDOkiDBAhwmRrHozBesRijVyIlTuKk13OxKNZsSRgLhhsMYC97S9dfqDihZiISxSTQzc YKG8m8qF6oDT+JTaO/77cNA0dXSPAHkg0fJEC7PX7/OYg//QIwjEBaQgif2Tpshy88HCV7 UkMA5murlY3q//Jh1wva+Ks5Q35p3NJhIG7NJTz+GzI4zEdYVVBBqyHBUPIgsg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649851467; a=rsa-sha256; cv=none; b=DKCp2GttBMwbTEno+WAXAFKvgnFf6deih6xiUt2FDx216tN2ofj4yYviAYUKWRSoXmrYC9 nmkZSGKnVPLhXel30/sIHIZzQeQGdmHe44VH50+p0agApDyTINi67jxuPzqkmC38jz7zY4 w4s0REWFWsMm24pVjXZhQsXlF6SP5tNxvC3MNIpX5nHMgwyUTZhoAwKYRbqBNrNHvA2R0X u6g6dOiqkuwLdr/laWhSpMFk1apaU63kXoNNVmwgxiCEbkbRSSskcfsynZna59nQz5B9HW 73otb2j7eEI+yDbz/LSdUj8IVZ/po5cgt+JRhUbl73x7Hju99gTiPojU3JzLUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235185 Mateusz Kwiatkowski changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kwiat3k@panic.pl --- Comment #44 from Mateusz Kwiatkowski --- One more data point to this issue: software installed from ports that depen= d on looking binaries in PATH, behaves differently when started with service(8) = or directly with rc script. One example is containerd + runj. Containerd is a container runtime whereas runj is a "plugin" to make it work with FreeBSD Jails. Runj is installed by ports and its binary is located in /usr/local/bin/ which is not included in default PATH set by service(8) or /etc/rc. Without setting PATH explicitly in a rc script, containerd will wo= rk when started by script and won't work when started by service(8) or after reboot. I think that it's annoying inconsistency. My vote goes to sanitising environment in every case, starting with next major release. --=20 You are receiving this mail because: You are on the CC list for the bug.=