From owner-freebsd-bugs@freebsd.org Fri Apr 30 13:08:45 2021 Return-Path: Delivered-To: freebsd-bugs@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 376525FDEB5 for ; Fri, 30 Apr 2021 13:08:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FWt3d0tfGz4kZd for ; Fri, 30 Apr 2021 13:08:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 1C7A15FDEB4; Fri, 30 Apr 2021 13:08:45 +0000 (UTC) Delivered-To: bugs@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 1B2AC5FDEB3 for ; Fri, 30 Apr 2021 13:08:45 +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 4FWt3d01ywz4kX0 for ; Fri, 30 Apr 2021 13:08:45 +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 E7FFA2C9E0 for ; Fri, 30 Apr 2021 13:08:44 +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 13UD8iP7064100 for ; Fri, 30 Apr 2021 13:08:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 13UD8iGG064099 for bugs@FreeBSD.org; Fri, 30 Apr 2021 13:08:44 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 255514] etcupdate cleared the executable bit from /etc/rc.d/netif when resolving conflicts Date: Fri, 30 Apr 2021 13:08:45 +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.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: uqs@FreeBSD.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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2021 13:08:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255514 Bug ID: 255514 Summary: etcupdate cleared the executable bit from /etc/rc.d/netif when resolving conflicts Product: Base System Version: 13.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: conf Assignee: bugs@FreeBSD.org Reporter: uqs@FreeBSD.org Hi, this basically bricked a remote system (luckily I had OOB access). First, freebsd-update bricked the update to 13 as it copied a half kernel o= ver but the modules failed to load due to version symbol mismatch (what?). Then= I did the regular kernel/world build and install, followed by etcupdate. I have a sleep in /etc/rc.d/netif (phys link takes too long to come up), etcupdate entered the EDITOR to fix up the conflict, then I marked as resol= ved. Rebooted and: Starting devd. eval: /etc/rc.d/netif: Permission denied em1: link state changed to UP debugnet_any_ifnet_update: Bad dn_init result from em1 (ifp 0xfffff80003c98000), ignoring. eval: /etc/rc.d/netif: Permission denied route: writing to routing socket: Network is unreachable add net default: gateway 185.95.219.48 fib 0: Network is unreachable Autoloading module: ichsmb.ko eval: /etc/rc.d/netif: Permission denied Dafuq? root@acme:~# ls -l /etc/rc.d/net* -rw-r--r-- 1 root wheel 5995 Apr 30 14:42 /etc/rc.d/netif -r-xr-xr-x 1 root wheel 2774 Jan 6 16:52 /etc/rc.d/netoptions -r-xr-xr-x 1 root wheel 3067 Jan 6 16:52 /etc/rc.d/netwait --=20 You are receiving this mail because: You are the assignee for the bug.=