Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2012 00:51:19 GMT
From:      Garrett Cooper <yanegomi@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/171726: [tty] conscontrol mute [on/off] doesn't work post-boot
Message-ID:  <201209180051.q8I0pJHv064620@red.freebsd.org>
Resent-Message-ID: <201209180100.q8I10ECO021612@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         171726
>Category:       kern
>Synopsis:       [tty] conscontrol mute [on/off] doesn't work post-boot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 18 01:00:14 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Cooper
>Release:        9.0-RELEASE
>Organization:
EMC Isilon
>Environment:
FreeBSD bf049.west.isilon.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
conscontrol mute on/off is supposed to change the RB_MUTE property of a console,
which in turn is supposed to mute all input on the console, but that doesn't appear to work. Executing the attached script results in me being able to execute commands on both the serial and VGA console even after the console has been marked muted.

Similarly, I poked at the kern.consmute sysctl and it didn't seem to do the right thing when I set it to 0 or 1.

The only apparent workaround is to call loader with -m and then unset kern.consmute via /etc/sysctl.conf or another point in time before the system console is initialized (I tried doing it via /etc/rc but unfortunately that didn't work).
>How-To-Repeat:
sh
cat > muteme.sh <<-EOF
#!/bin/sh

sysctl kern.consmute=1
for i in \$(jot 10 10 1)
do
    echo -n "\$i.."
    sleep 1
done
sysctl kern.consmute=0
EOF
sh muteme.sh

1. You should be unable to see the above countdown and you should be unable to do anything on the console.
2. You should be able to see printouts on the console and be able to input on the console after 10 seconds.
>Fix:
The console needs to change to be `revoked` and reinitialized properly.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209180051.q8I0pJHv064620>