-# $OpenBSD: Makefile,v 1.370 2014/07/13 13:53:36 rpe Exp $
+# $OpenBSD: Makefile,v 1.371 2014/07/14 09:04:02 deraadt Exp $
TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain
# -rw-r--r--
BINOWN= root
BINGRP= wheel
-BIN1= changelist csh.cshrc csh.login csh.logout daily \
+BIN1= changelist csh.cshrc csh.login csh.logout daily dhclient.conf \
+ etc.${MACHINE}/disktab etc.${MACHINE}/login.conf \
ftpusers gettytab group hosts ksh.kshrc locate.rc \
- man.conf monthly motd myname netstart networks \
- newsyslog.conf protocols rc rc.conf rc.local \
- rc.securelevel rc.shutdown rpc services shells syslog.conf \
- weekly etc.${MACHINE}/login.conf etc.${MACHINE}/disktab \
- dhclient.conf mailer.conf moduli pf.os mixerctl.conf
+ mailer.conf man.conf mixerctl.conf moduli monthly motd \
+ myname netstart networks newsyslog.conf pf.os protocols \
+ rc rc.conf rpc services shells syslog.conf weekly
+.if ${MACHINE} != "aviion"
+BIN1+= wsconsctl.conf
+.endif
EXAMPLES=chio.conf dhcpd.conf exports ftpchroot hosts.lpd ifstated.conf \
inetd.conf mrouted.conf ntpd.conf printcap rbootd.conf remote \
sensorsd.conf
EXAMPLES_600=bgpd.conf dvmrpd.conf hostapd.conf iked.conf ipsec.conf \
- ldapd.conf ldpd.conf ospf6d.conf ospfd.conf relayd.conf ripd.conf \
- sasyncd.conf snmpd.conf ypldap.conf
-
-.if ${MACHINE} != "aviion"
-BIN1+= wsconsctl.conf
-.endif
+ ldapd.conf ldpd.conf ospf6d.conf ospfd.conf rc.local \
+ rc.securelevel rc.shutdown relayd.conf ripd.conf \
+ sasyncd.conf snmpd.conf ypldap.conf
# -rw-rw-r--
BIN2= motd
-# $OpenBSD: changelist,v 1.92 2014/07/13 13:53:36 rpe Exp $
+# $OpenBSD: changelist,v 1.93 2014/07/14 09:04:02 deraadt Exp $
#
# List of files which the security script backs up and checks
# for modifications.
/etc/rc.conf
/etc/rc.conf.local
/etc/rc.d/rc.subr
-/etc/rc.local
-/etc/rc.securelevel
-/etc/rc.shutdown
++/etc/rc.local
++/etc/rc.securelevel
++/etc/rc.shutdown
+/etc/relayd.conf
+/etc/remote
/etc/resolv.conf
--- /dev/null
+# $OpenBSD: rc.local,v 1.1 2014/07/14 09:04:02 deraadt Exp $
+
+# Site-specific startup actions, daemons, and other things which
+# can be done AFTER your system goes into securemode. For actions
+# which should be done BEFORE your system has gone into securemode
+# please see /etc/rc.securelevel.
--- /dev/null
+# $OpenBSD: rc.securelevel,v 1.1 2014/07/14 09:04:02 deraadt 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
+
+echo -n 'starting pre-securelevel daemons:'
+
+#
+# Place local actions here.
+#
+
+echo '.'
--- /dev/null
+# $OpenBSD: rc.shutdown,v 1.1 2014/07/14 09:04:02 deraadt Exp $
+#
+# If it exists, this script is run at system-shutdown by reboot(8),
+# halt(8). If the architecture supports keyboard requested halting,
+# it is also run by init(8) when such an event happens.
+#
-# $OpenBSD: rc,v 1.430 2014/07/14 03:45:55 deraadt Exp $
+# $OpenBSD: rc,v 1.431 2014/07/14 09:04:02 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
fi
echo /etc/rc.shutdown in progress...
- [ -f /etc/rc.shutdown ] && . /etc/rc.shutdown
+ [ -f /etc/rc.shutdown ] && sh /etc/rc.shutdown
echo /etc/rc.shutdown complete.
else
echo single user: not running shutdown scripts
esac
done
- if [ X"${powerdown}" = X"YES" ]; then
- exit 2
- fi
exit 0
fi
setup_X_sockets
-[ -f /etc/rc.securelevel ] && . /etc/rc.securelevel
-if [ X"${securelevel}" != X"" ]; then
- echo -n 'setting kernel security level: '
- sysctl kern.securelevel=${securelevel}
-fi
+[ -f /etc/rc.securelevel ] && sh /etc/rc.securelevel
+sysctl kern.securelevel=1
# patch /etc/motd
if [ ! -f /etc/motd ]; then
echo '.'
fi
-[ -f /etc/rc.local ] && . /etc/rc.local
+[ -f /etc/rc.local ] && sh /etc/rc.local
ifconfig -g carp -carpdemote 128 # disable carp interlock
+++ /dev/null
-# $OpenBSD: rc.local,v 1.44 2011/04/22 06:08:14 ajacoutot Exp $
-
-# Site-specific startup actions, daemons, and other things which
-# can be done AFTER your system goes into securemode. For actions
-# which should be done BEFORE your system has gone into securemode
-# please see /etc/rc.securelevel.
+++ /dev/null
-# $OpenBSD: rc.securelevel,v 1.16 2004/07/06 04:05:03 deraadt 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 configuration
-# XXX file, because locking it down requires immutability on about
-# XXX 5 files instead of 2 (the kernel and init)
-# XXX
-securelevel=1
-
-echo -n 'starting pre-securelevel daemons:'
-
-#
-# Place local actions here.
-#
-
-echo '.'
+++ /dev/null
-# $OpenBSD: rc.shutdown,v 1.12 2011/04/22 06:08:14 ajacoutot Exp $
-#
-# If it exists, this script is run at system-shutdown by reboot(8),
-# halt(8). If the architecture supports keyboard requested halting,
-# it is also run by init(8) when such an event happens.
-#
-
-powerdown=NO # set to YES for powerdown
-
-# Add your local shutdown actions here.