From owner-freebsd-current@FreeBSD.ORG Fri Oct 31 11:31:39 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD7C416A4CE; Fri, 31 Oct 2003 11:31:39 -0800 (PST) Received: from mail.tcoip.com.br (erato.tco.net.br [200.220.254.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 104D643F3F; Fri, 31 Oct 2003 11:31:37 -0800 (PST) (envelope-from dcs@tcoip.com.br) Received: from tcoip.com.br (dcs@[10.0.2.6]) by mail.tcoip.com.br (8.11.6/8.11.6) with ESMTP id h9VJVFb04872; Fri, 31 Oct 2003 17:31:15 -0200 Message-ID: <3FA2B895.7040705@tcoip.com.br> Date: Fri, 31 Oct 2003 17:31:33 -0200 From: "Daniel C. Sobral" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031030 X-Accept-Language: en-us, en, pt-br, ja MIME-Version: 1.0 To: Current , Sam Leffler , Poul-Henning Kamp Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Weird behavior with /dev/mem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Oct 2003 19:31:40 -0000 Weird thing. I updated my system today (October 31), and now I can't list routes from syscons. But I still can list routes from Konsole, on X. Following a suggestion by Genesys, I checked permissions of /dev/mem and netstat and... for some reason, I can't stat /dev/mem under syscons! Here are a couple of typescripts I got: [0] dcs@dcs:/opt/home/dcs$ cat from_konsole Script started on Fri Oct 31 17:25:04 2003 dcs@dcs:/opt/home/dcs$ ls -ld /dev dr-xr-xr-x 4 root wheel 512 Oct 31 13:56 /dev dcs@dcs:/opt/home/dcs$ ls -l /dev/mem crw-r----- 1 root kmem 2, 0 Oct 31 15:54 /dev/mem dcs@dcs:/opt/home/dcs$ ls -l /usr/bin/netstat -r-xr-sr-x 1 root kmem 108664 Oct 31 13:18 /usr/bin/netstat dcs@dcs:/opt/home/dcs$ netstat -nr Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 10.0.11.1 UGSc 0 0 fxp0 10/16 link#1 UC 0 0 fxp0 10.0.2.72 00:04:23:2a:13:7b UHLW 0 1 fxp0 881 10.0.11.1 00:10:54:cd:58:40 UHLW 28 0 fxp0 1197 10.0.12.131 00:01:30:26:e0:00 UHLW 0 0 fxp0 1186 10.0.14.20 00:02:55:58:22:0a UHLW 6 39928 fxp0 975 127.0.0.1 127.0.0.1 UH 0 6 lo0 dcs@dcs:/opt/home/dcs$ exit exit Script done on Fri Oct 31 17:25:20 2003 [0] dcs@dcs:/opt/home/dcs$ cat from_syscons Script started on Fri Oct 31 17:26:01 2003 root@dcs:/root$ ls -ld /dev dr-xr-xr-x 4 root wheel 512 Oct 31 13:56 /dev root@dcs:/root$ ls -l /dev/mem ls: /dev/mem: Permission denied root@dcs:/root$ ls -l /usr/bin/netstat -r-xr-sr-x 1 root kmem 108664 Oct 31 13:18 /usr/bin/netstat root@dcs:/root$ netstat -nr netstat: kvm not available Routing tables rt_tables: symbol not in namelist root@dcs:/root$ exit exit Script done on Fri Oct 31 17:26:18 2003 [0] dcs@dcs:/opt/home/dcs$ which ls /bin/ls [0] dcs@dcs:/opt/home/dcs$ type ls ls is aliased to `ls -G' [0] dcs@dcs:/opt/home/dcs$ unalias ls [0] dcs@dcs:/opt/home/dcs$ ls -l /dev/mem crw-r----- 1 root kmem 2, 0 Oct 31 15:54 /dev/mem I'm CCing phk on the grounds of Mr Devfs, and Sam as I blamed the networking code earlier... :-) -- Daniel C. Sobral (8-DCS) Gerencia de Operacoes Divisao de Comunicacao de Dados Coordenacao de Seguranca VIVO Centro Oeste Norte Fones: 55-61-313-7654/Cel: 55-61-9618-0904 E-mail: Daniel.Capo@tco.net.br Daniel.Sobral@tcoip.com.br dcs@tcoip.com.br Outros: dcs@newsguy.com dcs@freebsd.org capo@notorious.bsdconspiracy.net Ignisecond, n.: The overlapping moment of time when the hand is locking the car door even as the brain is saying, "my keys are in there!" -- Rich Hall, "Sniglets"