From robert@fledge.watson.org  Sat Dec  9 11:29:30 2000
Return-Path: <robert@fledge.watson.org>
Received: from fledge.watson.org (fledge.watson.org [204.156.12.50])
	by hub.freebsd.org (Postfix) with ESMTP id 9B91F37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  9 Dec 2000 11:29:29 -0800 (PST)
Received: (from robert@localhost)
	by fledge.watson.org (8.11.1/8.11.1) id eB9JTST77017;
	Sat, 9 Dec 2000 14:29:28 -0500 (EST)
	(envelope-from robert)
Message-Id: <200012091929.eB9JTST77017@fledge.watson.org>
Date: Sat, 9 Dec 2000 14:29:28 -0500 (EST)
From: rwatson@freebsd.org
Sender: robert@fledge.watson.org
Reply-To:
To: FreeBSD-gnats-submit@freebsd.org
Subject: mergemaster should display warning when advising use of MAKEDEV
X-Send-Pr-Version: 3.2

>Number:         23406
>Category:       bin
>Synopsis:       MAKEDEV all should not be used on live systems
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 09 11:30:00 PST 2000
>Closed-Date:    Mon Dec 11 09:03:44 PST 2000
>Last-Modified:  Mon Dec 11 09:07:27 PST 2000
>Originator:     Robert Watson
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:

fledge# uname -a
FreeBSD fledge.watson.org 4.2-STABLE FreeBSD 4.2-STABLE #0: Fri Nov 24 02:18:30 EST 2000     robert@fledge.watson.org:/usr/obj/data/fbsd-stable/src/sys/FLEDGE  i386

>Description:

mergemaster, on noticing it merged a change to /dev/MAKEDEV, will suggest
to the user that they run MAKEDEV all to recreate devices.  However, this
is dangerous on multi-user machines, as it resets ownership and permissions
on user tty devices so that they are world-readable and writable.  This
can allow nastiness such as tty spoofing and sniffing, not to mention
confusion when the user runs mesg n and discovers they don't own the
tty.  As such, I'd recommend adding a warning to the mergemaster output
recommending that MAKEDEV all not be run on live multi-user systems,
and instead only be used in single-user mode or when no risk is involved
in resetting these permissions.

>How-To-Repeat:

mergemaster

>Fix:



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Mon Dec 11 09:03:44 PST 2000 
State-Changed-Why:  

The project has always made the assumption that upgrades 
will happen in single user mode. While I personally like 
to do everything I can to support multi-user upgrades, 
the recommended time to run mergemaster is immediately 
before reboot, therefore the negative impact noted here 
is likely to be both small and short lived, even in 
multi-user mode with users on the box. 


Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Mon Dec 11 09:03:44 PST 2000 
Responsible-Changed-Why:  

Mergemaster is my responsibility 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23406 
>Unformatted:
