Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Apr 1997 10:42:19 +0200 (CEST)
From:      Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
To:        hackers@hub.freebsd.org
Subject:   Re: sysctl -A
Message-ID:  <Pine.BSF.3.95.970427103036.384A-100000@lend.tu-graz.ac.at>
In-Reply-To: <199704270447.VAA27744@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
There's a workaround to solve the "X exor securelevel" problem.
I use
	# X must be up and running before setting securelevel to $slev > 0
	(sleep $sleep; sysctl -w kern.securelevel=$slev) &

in my rc.local right after starting xdm. So securelevel is raised after
X got it's write access to VGA memory (which securelevel > 0 would
prohibit).
The drawbacks are:
	1. You have to go single user to restart your X server if it
		should die (fortunately this never happened to me :).
	2. securelevel > 0 prevents you from using modload too (preload
		all anticipated lkms or go single user again here).

NetBSD is said to have a cleaner solution, they're using a special device
for X's memory access.

	Martin




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970427103036.384A-100000>