From nobody Tue Jan 28 14:29:37 2025 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 4Yj73573qsz5lX4H for ; Tue, 28 Jan 2025 14:29:37 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yj7356CX0z3ZPy for ; Tue, 28 Jan 2025 14:29:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738074577; 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=HQpQNlctd7onE5K/zVvnmRwZ70J8bt/EkfSyPcuGtgs=; b=XTzrXQXD/05heu8h5HZLfXP/puwA4IjbM1eyg9CXk9dTRGiQENEgXz3pxJw6xg8La9+Iqi 718sOb34531S5F1P3ta3rPtEN2lUvnGXUTRpJzXiKAxSrw1uGFXgWxURJJ1svp3KmogPMU z3sOfQ4E7LenVlVnrciprT7uV+favpobDK0QxpWpq7ogh8633jkGyjKSoX54X2bVd98q0P MLV+DTNUmMIQCyY7IYN18ixpKk7qJbHwrgTF+C6Wl7MFZIE7i8gPKxZpLP6Ff7EKqC56+1 truH5BoV5tmOmw/InhtaO7/qZ7KhJvJAj+wC0jCiAigcaaloOkW7TwVc/2XjDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1738074577; 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=HQpQNlctd7onE5K/zVvnmRwZ70J8bt/EkfSyPcuGtgs=; b=Qp5U7whS0LTuW9rZhLdm2wdarBgJBq0DrU0zF3S1aeq8EX8oAPH/P4H4isZEAbfy/MxqZp p/7+2TqaQ91XdsQh3JTdoRuKLdAAnBGj5CEcey1D8ZLUh5OliX0Gvrzm7pgPxg5j8cLhsv vxFF0JP8bOVasLwt22VUxXQn2PNVCoMRuqjzjKy9Gzdyilhj9JX6R9ZwRigLS/Ad+7+DyS 3Vmz42vy69/LSDooOdZsxI04hmVNxIE4Q8/zPST1/h8sv/hBQdyIsm2zzoTBZ4lSQLSWdd OEy5U3dLebAbkyPoM61/JI4p9sM7gLGW7A+pBakiB6Lj/UfiR6dffAqtAcrdAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1738074577; a=rsa-sha256; cv=none; b=klex6QrLOln142jLBrK/f4rrInWBNZbEQWdMJAXzDtUWIYgplohN4nEZ8pa+pPSMesM5hv j2RAmXcsMYRiFH2S79WjIj6zUFvKy1p5sRjTFf5G70a1Rrw5mLcqBD43UdqnFq3WYoMpXi LM0sZ1K6nPUvopNx1XNjes23uoi0TiHwBqqPLA/4NFdAvlQABwYXXbiAegRbA5MNIKkNTQ U6WI0BgGtD0FEmpJuVvfDuVHRDYQB3t/x3we5kVqUea73KrK2Bj5MJPofNA/CaBUJb2QdZ CVXclfFhXxJaEMkQEWzZn1H2gvnrEYR3TCJFC0W0ll/+PovQDIbiqEacn5qrdg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4Yj7355m8Nz3q5 for ; Tue, 28 Jan 2025 14:29:37 +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 50SETblT086249 for ; Tue, 28 Jan 2025 14:29:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50SETbnS086247 for bugs@FreeBSD.org; Tue, 28 Jan 2025 14:29:37 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 280941] The reboot command considered harmful Date: Tue, 28 Jan 2025 14:29:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: tamelingdaniel@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D280941 --- Comment #14 from Daniel Tameling --- Created attachment 257061 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D257061&action= =3Dedit make reboot and halt aliases for shutdown -r now and shutdown -h now I created a patch to show how a change could potentially look if there is e= ver consensus to move ahead. I only tested it lightly. A few notes: - I kept the names of the _PATH_REBOOT and _PATH_HALT in include/paths.h despite them referring to fastboot and fasthalt as I wasn't sure who else w= as using them - I renamed reboot.{c,8} to fastboot.{c,8} but left the directory as reboot - I wasn't sure what to do with the history section of the fastboot.8 file.= It still talks about the history of reboot - Since they are now derived from shutdown, the permissions and group owner= ship of reboot and halt change. It was -r-xr-xr-x root wheel and is now -r-sr-xr= -- root operator --=20 You are receiving this mail because: You are the assignee for the bug.=