Source-Changes-HG archive

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

[src/netbsd-3]: src/sys/sys Pull up revision 1.138 (requested by elad in tick...



details:   https://anonhg.NetBSD.org/src/rev/bc598ce1d1bb
branches:  netbsd-3
changeset: 576358:bc598ce1d1bb
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Jul 02 15:46:53 2005 +0000

description:
Pull up revision 1.138 (requested by elad in ticket #487):
More veriexec refactoring.
- Use u_char for the fingerprint status.
- Add a pointer to the vnode's veriexec hash table entry in the vnode
struct. This saves a lookup and will also used by planned features.
- When removing a file from the tables, set the vnode fingerprint status
to NOENTRY.
- Add switch to do flag-specific handling in veriexec_verify(). At the
moment this prevents execution of FILE entries in strict level 2, but
it will also be used by planned features.
- Use memset() instead of bzero().
- Various cosmetic changes.

diffstat:

 sys/sys/vnode.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 2a90ccf1c02d -r bc598ce1d1bb sys/sys/vnode.h
--- a/sys/sys/vnode.h   Sat Jul 02 15:46:46 2005 +0000
+++ b/sys/sys/vnode.h   Sat Jul 02 15:46:53 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vnode.h,v 1.134.2.1 2005/06/10 14:48:56 tron Exp $     */
+/*     $NetBSD: vnode.h,v 1.134.2.2 2005/07/02 15:46:53 tron Exp $     */
 
 /*
  * Copyright (c) 1989, 1993
@@ -122,8 +122,8 @@
        void            *v_data;                /* private data for fs */
        struct klist    v_klist;                /* knotes attached to vnode */
 #ifdef VERIFIED_EXEC
-       char fp_status;                         /* fingerprint status
-                                                  (see below) */
+       u_char fp_status;                       /* fingerprint status */
+       struct veriexec_hash_entry *vhe;        /* veriexec table entry */
 #endif
 };
 #define        v_mountedhere   v_un.vu_mountedhere



Home | Main Index | Thread Index | Old Index