Re: Regarding securelevel startup window
- Reply: Isaac (.ike) Levy: "Re: Regarding securelevel startup window"
- In reply to: Isaac (.ike) Levy: "Regarding securelevel startup window"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Mar 2026 22:02:35 UTC
On 3/8/26 1:59 PM, Isaac (.ike) Levy wrote: > Hi All, > > I've been re-reading Design and Implementation cover to cover, been a while, this time as part of a project teaching portable shell programming to some wonderful, burgeoning programmers. > > I've hit a question regarding, the securelevel startup window: > > The system has to boot at securelevel -1 before it can raise. Does anyone know if that window has ever been exploited in the wild? securelevel is a nice thing but it's like locking your front door. It doesn't achieve much against an attacker. The boot issue is a big hole. Simply copying a rogue kernel module to /boot/kernel, modifying kld_list in rc.conf, rebooting, would load that module before securelevel is set. You'd probably never see the file if that happened as it would hide itself after boot. Or just replacing some file in there and rebooting. Or any other rogue script thrown into /etc/rc.d. If an attacker has root access securelevel does not matter much.