From owner-dev-commits-src-all@freebsd.org Thu Feb 4 03:14:56 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5928F535CE2; Thu, 4 Feb 2021 03:14:56 +0000 (UTC) (envelope-from git@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 4DWNvh1mDxz4jn6; Thu, 4 Feb 2021 03:14:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 2F0502C849; Thu, 4 Feb 2021 03:14:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1143EuOY093520; Thu, 4 Feb 2021 03:14:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1143EujL093519; Thu, 4 Feb 2021 03:14:56 GMT (envelope-from git) Date: Thu, 4 Feb 2021 03:14:56 GMT Message-Id: <202102040314.1143EujL093519@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: d6898bc06ae9 - stable/12 - login.conf(5): set a default PATH for the daemon class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: d6898bc06ae9637ffa35705c5753fdecc518d73b Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2021 03:14:56 -0000 The branch stable/12 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=d6898bc06ae9637ffa35705c5753fdecc518d73b commit d6898bc06ae9637ffa35705c5753fdecc518d73b Author: Andrew Gierth AuthorDate: 2020-02-05 04:27:08 +0000 Commit: Kyle Evans CommitDate: 2021-02-04 03:14:12 +0000 login.conf(5): set a default PATH for the daemon class This is a sensible default used by, e.g., cron(8), and useful if one wanted to honor it. This is a part of D21481. (cherry picked from commit ed6f64ff8a90eee579fefef510329b5e9f1f9a65) --- usr.bin/login/login.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr.bin/login/login.conf b/usr.bin/login/login.conf index 974d4485eadc..44174dd12d03 100644 --- a/usr.bin/login/login.conf +++ b/usr.bin/login/login.conf @@ -61,7 +61,13 @@ xuser:\ :tc=default: staff:\ :tc=default: + +# This PATH may be clobbered by individual applications. Notably, by default, +# rc(8), service(8), and cron(8) will all override it with a default PATH that +# may not include /usr/local/sbin and /usr/local/bin when starting services or +# jobs. daemon:\ + :path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin:\ :mail@:\ :memorylocked=128M:\ :tc=default: