NetBSD/sys
elad 6700cfccd6 Some Veriexec stuff that's been rotting in my tree for months.
Bug fixes:
  - Fix crash reported by Scott Ellis on current-users@.

  - Fix race conditions in enforcing the Veriexec rename and remove
    policies. These are NOT security issues.

  - Fix memory leak in rename handling when overwriting a monitored
    file.

  - Fix table deletion logic.

  - Don't prevent query requests if not in learning mode.


KPI updates:
  - fileassoc_table_run() now takes a cookie to pass to the callback.

  - veriexec_table_add() was removed, it is now done internally. As a
    result, there's no longer a need for VERIEXEC_TABLESIZE.

  - veriexec_report() was removed, it is now internal.

  - Perform sanity checks on the entry type, and enforce default type
    in veriexec_file_add() rather than in veriexecctl.

  - Add veriexec_flush(), used to delete all Veriexec tables, and
    veriexec_dump(), used to fill an array with all Veriexec entries.


New features:
  - Add a '-k' flag to veriexecctl, to keep the filenames in the kernel
    database. This allows Veriexec to produce slightly more accurate
    logs under certain circumstances. In the future, this can be either
    replaced by vnode->pathname translation, or combined with it.

  - Add a VERIEXEC_DUMP ioctl, to dump the entire Veriexec database.
    This can be used to recover a database if the file was lost.
    Example usage:

        # veriexecctl dump > /etc/signatures

    Note that only entries with the filename kept (that is, were loaded
    with the '-k' flag) will be dumped.

    Idea from Brett Lymn.

  - Add a VERIEXEC_FLUSH ioctl, to delete all Veriexec entries. Sample
    usage:

        # veriexecctl flush

  - Add a 'veriexec_flags' rc(8) variable, and make its default have
    the '-k' flag. On systems using the default signatures file
    (generaetd from running 'veriexecgen' with no arguments), this will
    use additional 32kb of kernel memory on average.

  - Add a '-e' flag to veriexecctl, to evaluate the fingerprint during
    load. This is done automatically for files marked as 'untrusted'.


Misc. stuff:
  - The code for veriexecctl was massively simplified as a result of
    eliminating the need for VERIEXEC_TABLESIZE, and now uses a single
    pass of the signatures file, making the loading somewhat faster.

  - Lots of minor fixes found using the (still under development)
    Veriexec regression testsuite.

  - Some of the messages Veriexec prints were improved.

  - Various documentation fixes.


All relevant man-pages were updated to reflect the above changes.

Binary compatibility with existing veriexecctl binaries is maintained.
2007-05-15 19:47:43 +00:00
..
altq Remove duplicate #include <sys/kauth.h> 2007-03-26 22:43:19 +00:00
arch Pull across #include file fix from yamt-idlelwp. 2007-05-15 18:00:34 +00:00
coda make coda compile again. 2007-04-25 20:45:02 +00:00
compat This is deja vu - I fixed this earlier.... 2007-05-13 16:04:00 +00:00
conf amd64 kern.ldscript can handle notes now 2007-05-12 21:00:00 +00:00
contrib/dev/ath Remove support for NetBSD/{,evb}sh5. 2007-04-08 09:35:21 +00:00
crypto
ddb Import of POSIX Asynchronous I/O. 2007-04-30 14:44:28 +00:00
dev Some Veriexec stuff that's been rotting in my tree for months. 2007-05-15 19:47:43 +00:00
dist pfctl: extend pf.conf(5) syntax. Let the operator supply an optional 2007-05-10 22:30:54 +00:00
fs In case strategy memory allocation for B_ASYNC|B_READ fails, 2007-05-15 12:48:48 +00:00
gdbscripts
ipkdb
kern Some Veriexec stuff that's been rotting in my tree for months. 2007-05-15 19:47:43 +00:00
lib Include byte_swap_[24].c for kernels compiled with -O0 2007-04-13 22:12:04 +00:00
lkm Remove compat_util.o from these loadable modules. It will be in the kernel. 2007-05-12 10:45:01 +00:00
miscfs use a cached value of v_size. no functional changes. 2007-05-13 13:11:53 +00:00
net Cosmetic: make the macro 'equal' into an inline subroutine, bcmp 2007-05-06 06:21:26 +00:00
net80211 Reference the right flag, 2007-03-26 21:22:35 +00:00
netatalk In AppleTalk, IPv4, and IPv6 routing domains, help sockaddr_cmp() 2007-05-06 02:56:37 +00:00
netbt Eliminate address family-specific route caches (struct route, struct 2007-05-02 20:40:22 +00:00
netinet KNF. Use sockaddr_in_init(). Shorten staircases. No functional 2007-05-12 02:10:25 +00:00
netinet6 In AppleTalk, IPv4, and IPv6 routing domains, help sockaddr_cmp() 2007-05-06 02:56:37 +00:00
netipsec Always compute the sp index even if we don't have any sp in spd. It will 2007-05-08 14:07:42 +00:00
netisdn
netiso In AppleTalk, IPv4, and IPv6 routing domains, help sockaddr_cmp() 2007-05-06 02:56:37 +00:00
netkey Eliminate address family-specific route caches (struct route, struct 2007-05-02 20:40:22 +00:00
netnatm Eliminate address family-specific route caches (struct route, struct 2007-05-02 20:40:22 +00:00
netsmb Pass an ipl argument to pool_init/POOL_INIT to be used when initializing 2007-03-12 18:18:22 +00:00
nfs nfs_write: report an error correctly in the case of IO_SYNC. 2007-05-09 23:17:45 +00:00
opencrypto Pass an ipl argument to pool_init/POOL_INIT to be used when initializing 2007-03-12 18:18:22 +00:00
secmodel
stand
sys Some Veriexec stuff that's been rotting in my tree for months. 2007-05-15 19:47:43 +00:00
ufs Add missing underscore to wchan name. 2007-05-15 14:35:29 +00:00
uvm Some Veriexec stuff that's been rotting in my tree for months. 2007-05-15 19:47:43 +00:00
Makefile