Annotation of src/etc/rc.securelevel, Revision 1.3
1.3 ! millert 1: # $OpenBSD: rc.securelevel,v 1.2 1997/04/29 07:47:20 dima Exp $
1.1 deraadt 2: #
3: # site-specific startup actions, daemons, and other things which
4: # can be done BEFORE your system goes into securemode. For actions
5: # which should be done AFTER your system has gone into securemode
6: # please see /etc/rc.local
7:
8: # This is the desired security level
9: # XXX
10: # XXX it is not really acceptable to put this value in a special
11: # XXX file, because locking it down requires immutability on about
12: # XXX 5 files instead of 2 (the kernel and init)
13: # XXX
14: securelevel=1
15:
1.3 ! millert 16: echo 'starting pre-securelevel services:'
! 17:
! 18: # Use traditional BSD semantics with chown(2)
! 19: #echo 'Enabling traditional BSD chown(2) semantics.'
! 20: #sysctl -w fs.posix.setuid=0 >/dev/null 2>&1
! 21:
! 22: # To run an accellerated X server when securelevel > 0 we must use /dev/ap.
! 23: # NOTE: modload will panic your kernel if the booted kernel is not /bsd.
! 24: #if [ -x /sbin/modload -a -x /usr/lkm/apinstall -a -r /usr/lkm/ap.o ]; then
! 25: # echo 'Installing XFree86 aperture driver.'
! 26: # rm -f /usr/lkm/ap
! 27: # modload -o /usr/lkm/ap -p /usr/lkm/apinstall -e ap /usr/lkm/ap.o
! 28: #fi
! 29:
1.1 deraadt 30: echo -n 'starting pre-securelevel daemons:'
31:
1.3 ! millert 32: #if [ -x /usr/local/sbin/xntpd ]; then
! 33: # /usr/local/sbin/tickadj -Aq
! 34: # echo -n ' xntpd'; /usr/local/sbin/xntpd
! 35: #fi
1.1 deraadt 36:
37: echo '.'