diff --git a/sys/dev/verified_exec.c b/sys/dev/verified_exec.c index e89265df6da3..b0269de25bb5 100644 --- a/sys/dev/verified_exec.c +++ b/sys/dev/verified_exec.c @@ -1,4 +1,4 @@ -/* $NetBSD: verified_exec.c,v 1.13 2005/06/16 15:41:36 elad Exp $ */ +/* $NetBSD: verified_exec.c,v 1.14 2005/06/16 15:45:48 elad Exp $ */ /*- * Copyright 2005 Elad Efrat @@ -31,9 +31,9 @@ #include #if defined(__NetBSD__) -__KERNEL_RCSID(0, "$NetBSD: verified_exec.c,v 1.13 2005/06/16 15:41:36 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: verified_exec.c,v 1.14 2005/06/16 15:45:48 elad Exp $"); #else -__RCSID("$Id: verified_exec.c,v 1.13 2005/06/16 15:41:36 elad Exp $\n$NetBSD: verified_exec.c,v 1.13 2005/06/16 15:41:36 elad Exp $"); +__RCSID("$Id: verified_exec.c,v 1.14 2005/06/16 15:45:48 elad Exp $\n$NetBSD: verified_exec.c,v 1.14 2005/06/16 15:45:48 elad Exp $"); #endif #include @@ -161,9 +161,9 @@ veriexecioctl(dev_t dev __unused, u_long cmd, caddr_t data, /* * Don't allow updates in multi-user mode. */ - if (securelevel >= 1) { - printf("Veriexec: veriexecioctl: Securelevel raised, loading" - "fingerprints is not permitted\n"); + if ((securelevel > 0) || (veriexec_strict > 0)) { + printf("Veriexec: veriexecioctl: Securelevel or strict " + "mode, modifying veriexec tables is not permitted.\n"); return (EPERM); }