From owner-FreeBSD-users-jp@jp.freebsd.org  Mon Feb 26 12:03:19 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id MAA41161;
	Mon, 26 Feb 2001 12:03:19 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from zebu.riken.go.jp (zebu.riken.go.jp [134.160.20.73])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with SMTP id MAA41156
	for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 26 Feb 2001 12:03:19 +0900 (JST)
	(envelope-from mitsuru@zebu.riken.go.jp)
Received: (qmail 1551 invoked from network); 26 Feb 2001 03:03:30 -0000
Received: from localhost (127.0.0.1)
  by localhost with SMTP; 26 Feb 2001 03:03:30 -0000
Date: Mon, 26 Feb 2001 12:03:07 +0900 (JST)
Message-Id: <20010226.120307.730549381.mitsuru@zebu.riken.go.jp>
To: FreeBSD-users-jp@jp.freebsd.org
From: Mitsuru Yoshida <mitsuru@zebu.riken.go.jp>
In-Reply-To: <20010224083224T.ipfw@ya3.so-net.ne.jp>
References: <20010213233535L.ipfw@ya3.so-net.ne.jp>
	<20010223.170631.576055830.mitsuru@zebu.riken.go.jp>
	<20010224083224T.ipfw@ya3.so-net.ne.jp>
X-Mailer: Mew version 1.95b103 on XEmacs 21.1.14 
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: FreeBSD-users-jp 59306
Subject: [FreeBSD-users-jp 59306] Re: dmesg -a
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: mitsuru@zebu.riken.go.jp

> > > > # getuid $B;H$C$?E,Ev$J(B patch $B:n$C$F(B send-pr $B$9$l$PNI$$!)(B
> >  $BCY$/$J$j$^$7$?$,!"$H$j$"$($:(B send-pr $B$7$^$7$?!#(B
> 
> $B$*Hh$l$5$^$G$7$?!#(B
 $B$H$j$"$($:!"(Bcurrent $B$K$OF~$l$F$b$i$($?$h$&$G$9!#(B
$B$G$b!";DG0$J$,$i!"4E$+$C$?$h$&$G$9!#(B

thomas $B$5$s$+$i$b$i$C$?%a!<%k(B
===========================================================================
This fix is not sufficient, I'm afraid; first, the whole message buffer
is exported as sysctl (on i386); second, dmesg classifies the lines by
the first characters (lines starting with <number> and number != 0 are 
only printed when -a is given). Because the kernel message buffer is
a ring buffer, the first characters of a line may be overwritten, causing
the rest of the line to be printed by a simple dmesg (without -a).

	- thomas
===========================================================================
$B3N$+$K!"(Bsysctl -a $B$G=P$A$c$$$^$9$M!#!#!#(B
$B:$$C$?!#(Blibc $B$N(B sysctl $B$+$iD>$5$J$$$H%@%a!)(B $B$A$g$C$H;d$N<j$K$OIi$($J$$(B
$B46$8$,$7$F$-$^$7$?!#(B
$B8eH>$NJ}$b!"$J$s$H$+$7$J$$$H%@%a$G$9$M!#(B

> $B$*$C$7$c$kDL$j$G$9!#$7$+$7!"?@7P<A$+$J$H$O;W$$$^$7$?$,!"M%@hEY$r$5$2$F(B
> send-pr $B$7$F$*$-$^$7$?!#0l1~!"(Bmount.today $B$H$+(B setuid.today $B$H$+$b(B
> 600 $B$_$?$$$J$N$G!#(B
 security $B=E;k$J$i!"(Bdefault $B$O87$7$/$7$F$*$/$K1[$7$?$3$H$O$J$$$G$9$+$i$M!#(B


$B5HED(B $B=<!w>pJs4D6-<<(B.$BM}2=3X8&5f=j(B (mitsuru@zebu.riken.go.jp)
http://w3cic.riken.go.jp/~mitsuru/index.html
