Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jul 2005 09:58:54 +0200
From:      "Norbert Koch" <NKoch@demig.de>
To:        <Axel.Gruner@suedfactoring.de>, <freebsd-questions@freebsd.org>
Subject:   RE: Strange securelevel
Message-ID:  <000001c58e93$34b5e600$4801a8c0@ws-ew-3.W2KDEMIG>
In-Reply-To: <OF90800755.61F0F06C-ONC1257046.0028C8B2-C1257046.0028C8B6@suedfac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi,
>
> after playing a bit with "securelevel" i found a very strange one (well, i
> thought there will be just -1, 0, 1, 2 and 3). But look at this:
>
> #sysctl kern.securelevel
> kern.securelevel: 2147483647
>
> Thats the highest securelevel i found on my FreeBSD 5.4-RELEASE.
> So, whatr does it mean? Getting electro shocks when touching the mouse
> and/or keyboard?
> And, the man page ha to be rewritten, to explain the rest of the
> 2147483644
> securelevel.
>
> No, serious, is this a bug, or what?

Well, that's 0x7FFFFFFF.
That means a little less than 2^31 securelevels to document.
And I'm expecting this to be about 2^63 for 64 bit systems ;-)

Someone please correct me if I'm wrong, but as I understand
sysctl_kern_securelvl() in kern_mib.c, it does not disallow
setting the securelevel so high. It only disallows to lower it.

Norbert




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001c58e93$34b5e600$4801a8c0>