Hi.
I looked for the file in /usr/src/sys where it is set the default secure level but iI can't find it
Can anybody point me to that file?
I want to change the default value to 1
Why do you want to change the default in the source code? There are no guarantees that the rc(8) scripts will even work at start up with a non-default securelevel. I'm pretty sure the only supported way to use securelevel are the kern_securelevel_enable and kern_securelevelrc.conf(5) settings.
I'm pretty sure you'll run into trouble. There are number of different tasks during the boot up that must be done with the default -1 securelevel and only after those the custom securelevel can be set.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.