From nobody Thu Feb 24 10:55:35 2022 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 ECFC719CA070 for ; Thu, 24 Feb 2022 10:55:35 +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 4K48vW4pWBz3nlw for ; Thu, 24 Feb 2022 10:55:35 +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 84CBB1FF4 for ; Thu, 24 Feb 2022 10:55:35 +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 21OAtZMg048875 for ; Thu, 24 Feb 2022 10:55:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 21OAtZhg048874 for bugs@FreeBSD.org; Thu, 24 Feb 2022 10:55:35 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 262170] Change in /usr/sbin/service causes /etc/rc.d/devmatch to hang on boot on LDAP clients Date: Thu, 24 Feb 2022 10:55:35 +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: 12.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: kheuer@gwdg.de 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645700135; 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=gAVfkCYboGlH4HWUaITJTLBRx94asTusHIVwMCfsJgM=; b=ZTTNzqYf9HglzaAOK2fAebozmQLGI7caVxr17wu81PZeAahSFyLG8Ku+0ldnayGMl24OVD 1esllLjg6e5zVpSt/xC5suOZmWX9GKT5AnrvcBkMBNijFSgf8bGU4+x8O7FdGQ0b+T3OsK U1cKKj8ivchSQIlUSD415fY2TbNOUBJRZHcaY4/8wv10E8syK6b/vg3LGaWInUsXL83N+S YH81yR8cPAuYhyjkhQCgDW89XSXoBzQszmY7VlDb+LglinHvMDYUIQ/hccemhzuCDCaAkf NTrIfOdO3RkeoYUohpZhFgzAs9htV/EwEVbUD2HVIAjpo7ttlbvq76HWNHUqPw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645700135; a=rsa-sha256; cv=none; b=A9AYhB9lgae5BHIGjT0vRYyT1MhT5RF72JKiFzS9RqMVgwzyj0gx/COg3/IXI6ssIo+XAp KSxmIPDqYm2xo2xNNltyzUnmvzg4zhyasloyMmY6brM9ixCMhW5qwRDc8YkO+SceYSBDAR S8ueYCilUAKRqf5BqkmpfRtLZMVxGyVaLXPmDyWS7K1uoXMdBWfUOUqNqD4JlKxIzwy9A7 oJ+YzsVlD5TnSgFiCEwAVO6K0Jbu/7MCbmWF1rzU1dy087Mp4I9/0xkPHjnb46+0cGAV13 pEiCAEAswrtpSWxUdLiiY3KHgBKcnIUJyBC+Hyhf1vO/Tx4H36qTB/YsDonBlA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262170 Bug ID: 262170 Summary: Change in /usr/sbin/service causes /etc/rc.d/devmatch to hang on boot on LDAP clients Product: Base System Version: 12.3-STABLE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: kheuer@gwdg.de Compared to 12.2-STABLE, line 168 of /usr/sbin/service has changed to: exec env -i -L 0/daemon HOME=3D/ PATH=3D/sbin:/bin:/usr/sbin:/usr/bin "$dir/$script" "$@" In 12.2-STABLE, line 168 reads: exec env -i HOME=3D/ PATH=3D/sbin:/bin:/usr/sbin:/usr/bin $dir/$script "$@" That means that /etc/login.conf.db shall additionally be scanned for environment variables in 12.3-STABLE. As a consequence, when a FreeBSD host is configured as an LDAP client, /etc/rc.d/devmatch will hang on boot since the system tries to connect to an LDAP server before network connections are available. Status codes and acti= ons in /etc/nsswitch.conf don't help. /etc/nsswitch.conf looks like: group: files ldap passwd: files ldap ... To be clear, any command executed by "exec env -i -L 0/daemon ..." will han= g on boot. --=20 You are receiving this mail because: You are the assignee for the bug.=