From owner-freebsd-questions Fri Dec 8 7:42:56 2000 From owner-freebsd-questions@FreeBSD.ORG Fri Dec 8 07:42:54 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from bbaer.muenster.de (bbaer.muenster.de [195.202.32.20]) by hub.freebsd.org (Postfix) with ESMTP id 749E537B400 for ; Fri, 8 Dec 2000 07:42:53 -0800 (PST) Received: (from bofh@localhost) by bbaer.muenster.de (8.9.3/8.9.3) id QAA20369 for freebsd-questions@freebsd.org; Fri, 8 Dec 2000 16:36:24 +0100 From: Eckart Hofmann Message-Id: <200012081536.QAA20369@bbaer.muenster.de> Subject: /dev/mem and /dev/io permission problems with 4.2-STABLE and XFree86-4 To: freebsd-questions@freebsd.org Date: Fri, 8 Dec 2000 16:36:24 +0100 (MET) X-Mailer: ELM [version 2.4ME+ PL48 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I have got a 4.2-STABLE box, cvsup'ed the last time 3 hours ago the whole world and the ports collection. After building the world and the kernel, "make KERNEL=MYKERNEL installkernel" (in multiuser mode, but I am the one and only user at this time) fails with an "operation not permitted" error executing "chflags noschg /kernel" as root. Rebooting in single user mode, make installkernel, reboot to single user, make installworld, mergemaster works fine. After this I rebooted again (into multiuser), built the latest XFree86-4, but can't get it to work. xf86cfg fails because a fatal X server error occurs: (WW) checkDevMem: failed to open "/dev/mem" (Operation not permitted) [...] Fatal server error: xf86EnableIO: Failed to open /dev/io for extended I/O (I started xf86cfg as root) The manpages for io(4) and mem(4) didn't give me a hint what happened, the search on deja.com and freebsd-(stable|questions) was unsuccessful. Running xf86cfg or startx within truss also didn't show some helpful output. Another problem in the same category (I think): I tried to copy a file with "mcopy foo a:" (as root) and got Can't open /dev/rfd0: Operation not permitted. All 3 device files (/dev/io, /dev/mem, /dev/rfd0) are read-writable for root. Any hints appreciated. Regards, Eckart To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message