Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/sys/kern Pull up revision 1.222 (requested by elad in tic...



details:   https://anonhg.NetBSD.org/src/rev/206fc31d714a
branches:  netbsd-3
changeset: 576373:206fc31d714a
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Jul 02 15:51:26 2005 +0000

description:
Pull up revision 1.222 (requested by elad in ticket #487):
More veriexec changes:
- Better organize strict level. Now we have 4 levels:
- Level 0, learning mode: Warnings only about anything that might've
resulted in 'access denied' or similar in a higher strict level.
- Level 1, IDS mode:
- Deny access on fingerprint mismatch.
- Deny modification of veriexec tables.
- Level 2, IPS mode:
- All implications of strict level 1.
- Deny write access to monitored files.
- Prevent removal of monitored files.
- Enforce access type - 'direct', 'indirect', or 'file'.
- Level 3, lockdown mode:
- All implications of strict level 2.
- Prevent creation of new files.
- Deny access to non-monitored files.
- Update sysctl(3) man-page with above. (date bumped too :)
- Remove FINGERPRINT_INDIRECT from possible fp_status values; it's no
longer needed.
- Simplify veriexec_removechk() in light of new strict level policies.
- Eliminate use of 'securelevel'; veriexec now behaves according to
its strict level only.

diffstat:

 sys/kern/vfs_syscalls.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r 7a9b485a8067 -r 206fc31d714a sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c   Sat Jul 02 15:51:20 2005 +0000
+++ b/sys/kern/vfs_syscalls.c   Sat Jul 02 15:51:26 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls.c,v 1.217.2.2 2005/06/10 14:49:10 tron Exp $      */
+/*     $NetBSD: vfs_syscalls.c,v 1.217.2.3 2005/07/02 15:51:26 tron Exp $      */
 
 /*
  * Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.217.2.2 2005/06/10 14:49:10 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.217.2.3 2005/07/02 15:51:26 tron Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_compat_43.h"
@@ -1831,10 +1831,8 @@
                goto out;
        }
 
-         /*
-          * Remove the fingerprint from the list if there was one.
-          */
 #ifdef VERIFIED_EXEC
+       /* Handle remove requests for veriexec entries. */
        if ((error = veriexec_removechk(p, vp, nd.ni_dirp)) != 0) {
                VOP_ABORTOP(nd.ni_dvp, &nd.ni_cnd);
                if (nd.ni_dvp == vp)



Home | Main Index | Thread Index | Old Index