[BACK]Return to rc.securelevel CVS log [TXT][DIR] Up to [local] / src / etc

File: [local] / src / etc / Attic / rc.securelevel (download)

Revision 1.3, Sun May 4 20:46:06 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.2: +19 -5 lines

Move xntpd -> rc.securelevel since tickadj need to twiddle /dev/mem
Move xdm back to rc.local; if your X server need access to /dev/mem
    and you do not use the ap driver starting xdm from rc.securelevel
    will only help the first time.
Add other rc.securelevel examples that are not daemons.

#	$OpenBSD: rc.securelevel,v 1.3 1997/05/04 20:46:06 millert Exp $
#
# site-specific startup actions, daemons, and other things which
# can be done BEFORE your system goes into securemode.  For actions
# which should be done AFTER your system has gone into securemode
# please see /etc/rc.local

# This is the desired security level
# XXX
# XXX it is not really acceptable to put this value in a special
# XXX file, because locking it down requires immutability on about
# XXX 5 files instead of 2 (the kernel and init)
# XXX
securelevel=1

echo 'starting pre-securelevel services:'

# Use traditional BSD semantics with chown(2)
#echo 'Enabling traditional BSD chown(2) semantics.'
#sysctl -w fs.posix.setuid=0 >/dev/null 2>&1

# To run an accellerated X server when securelevel > 0 we must use /dev/ap.
# NOTE: modload will panic your kernel if the booted kernel is not /bsd.
#if [ -x /sbin/modload -a -x /usr/lkm/apinstall -a -r /usr/lkm/ap.o ]; then
#	echo 'Installing XFree86 aperture driver.'
#	rm -f /usr/lkm/ap
#	modload -o /usr/lkm/ap -p /usr/lkm/apinstall -e ap /usr/lkm/ap.o
#fi

echo -n 'starting pre-securelevel daemons:'

#if [ -x /usr/local/sbin/xntpd ]; then
#       /usr/local/sbin/tickadj -Aq
#       echo -n ' xntpd';       /usr/local/sbin/xntpd
#fi                                                                            

echo '.'