NetBSD/etc/rc.d/veriexec
elad 07a01daf00 Load Veriexec signatures after mountall. Use veriexec_strict and
veriexec_verbose to set strict level and verbose level in rc.conf.
Defaults are 0.
2005-10-15 23:26:30 +00:00

30 lines
614 B
Bash
Executable File

#!/bin/sh
#
# $NetBSD: veriexec,v 1.8 2005/10/15 23:26:30 elad Exp $
#
# PROVIDE: veriexec
# REQUIRE: mountall
# BEFORE: ldconfig
$_rc_subr_loaded . /etc/rc.subr
name="veriexec"
rcvar=$name
start_cmd="veriexec_start"
veriexec_start()
{
echo -n "Loading fingerprints..."
/sbin/veriexecctl load /etc/signatures
echo " done."
# We can't set these before loading the fingerprints, because
# raising the strict level can prevent us from doing the load.
/sbin/sysctl -w kern.veriexec.strict=$veriexec_strict
/sbin/sysctl -w kern.veriexec.verbose=$veriexec_verbose
}
load_rc_config $name
run_rc_command "$1"