The NetBSD Project

CVS log for src/sys/kern/kern_fileassoc.c

[BACK] Up to [cvs.netbsd.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34.12.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:23 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.34: +7 -3 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

sync with head

Revision 1.34.16.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:28 2012 UTC (3 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.34: +7 -3 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

merge to -current.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jan 22 03:48:51 2012 UTC (4 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, HEAD
Changes since 1.34: +7 -3 lines
Diff to previous 1.34 (colored)

fileassoc_file_delete: pre-check whether fileassoc was used and thus avoid
acquiring kernel-lock, which damages sys_unlink() performance.

Revision 1.30.10.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:16 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.30.10.1: +140 -157 lines
Diff to previous 1.30.10.1 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored)

sync with head

Revision 1.34 / (download) - annotate - [select for diffs], Fri Dec 25 20:07:18 2009 UTC (2 years, 5 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.33: +2 -7 lines
Diff to previous 1.33 (colored)

Oops - unintentional locking bit that's not yet ready.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Dec 25 20:05:43 2009 UTC (2 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.32: +145 -151 lines
Diff to previous 1.32 (colored)

This subsystem had leftovers from the time it was part of Veriexec, and then
from when I first implemented it as "metahook."

Cleanup a lot of the mess by unifying variable names, add struct member
prefixes, adjust comments, etc.

No functional change intended.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Dec 25 18:51:41 2009 UTC (2 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.31: +2 -8 lines
Diff to previous 1.31 (colored)

No need for these prototypes here.

Revision 1.30.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:08 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.30: +8 -9 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Sync with HEAD.

Revision 1.30.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:07 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.30: +8 -9 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

sync with head.

Revision 1.30.10.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:25 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.30: +8 -9 lines
Diff to previous 1.30 (colored)

sync with head.

Revision 1.31 / (download) - annotate - [select for diffs], Mon May 5 17:11:17 2008 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Changes since 1.30: +8 -9 lines
Diff to previous 1.30 (colored)

- Convert hashinit() to use kmem_alloc(). The hash tables can be large
  and it's better to not have them in kmem_map.
- Convert a couple of minor items along the way to kmem_alloc().
- Fix some memory leaks.

Revision 1.29.14.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:45 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.29: +9 -3 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync with HEAD.

Revision 1.18.2.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:04 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.18.2.4: +9 -3 lines
Diff to previous 1.18.2.4 (colored) next main 1.19 (colored)

sync with head

Revision 1.29.8.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:01 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.29: +9 -3 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

sync with HEAD

Revision 1.29.20.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:50 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.29: +9 -3 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Sync with HEAD

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:49 2008 UTC (4 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.29: +9 -3 lines
Diff to previous 1.29 (colored)

Merge vmlocking2 to head.

Revision 1.29.16.1 / (download) - annotate - [select for diffs], Tue Jan 1 19:55:11 2008 UTC (4 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.29: +9 -3 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

fileassoc_file_delete: acquire kernel_lock.

Revision 1.18.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:46 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.18.2.3: +11 -5 lines
Diff to previous 1.18.2.3 (colored)

sync with head.

Revision 1.25.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:47 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.25: +5 -4 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Sync with head.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:18 2007 UTC (4 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.25: +5 -4 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Sync with head.

Revision 1.24.2.2 / (download) - annotate - [select for diffs], Thu May 17 13:41:45 2007 UTC (5 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.24.2.1: +5 -4 lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

sync with head.

Revision 1.29 / (download) - annotate - [select for diffs], Tue May 15 19:47:45 2007 UTC (5 years ago) by elad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, matt-armv6, bouyer-xeni386
Changes since 1.28: +5 -4 lines
Diff to previous 1.28 (colored)

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.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Apr 5 01:33:31 2007 UTC (5 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic
Changes since 1.27: +2 -4 lines
Diff to previous 1.27 (colored)

Revert the latest changes back to 1.25 rev.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Apr 4 11:01:10 2007 UTC (5 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Fix tbl, which was misstyped as tlb.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Apr 3 22:29:23 2007 UTC (5 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.25: +4 -2 lines
Diff to previous 1.25 (colored)

fileassoc_file_delete: Handle an error case of fileassoc_table_lookup().
CID: 4431

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:34 2007 UTC (5 years, 2 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.24: +8 -3 lines
Diff to previous 1.24 (colored)

Sync with HEAD.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Mar 9 05:51:50 2007 UTC (5 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.24: +8 -3 lines
Diff to previous 1.24 (colored)

fileassoc_table_lookup: call fileassoc_init if it has not been done yet.
fixes crashes sys_unlink when there are no users of fileassoc.

Revision 1.18.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:06 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.18.2.2: +96 -19 lines
Diff to previous 1.18.2.2 (colored)

sync with head.

Revision 1.9.2.4 / (download) - annotate - [select for diffs], Fri Feb 9 21:03:53 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.9.2.3: +93 -14 lines
Diff to previous 1.9.2.3 (colored) next main 1.10 (colored)

Sync with HEAD.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Feb 8 16:06:58 2007 UTC (5 years, 3 months ago) by elad
Branch: MAIN
CVS Tags: post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.23: +2 -3 lines
Diff to previous 1.23 (colored)

remove empty line

Revision 1.23 / (download) - annotate - [select for diffs], Wed Feb 7 09:38:04 2007 UTC (5 years, 3 months ago) by elad
Branch: MAIN
Changes since 1.22: +17 -12 lines
Diff to previous 1.22 (colored)

- Properly autocreate tables,
- Properly track number of used slots in the table,
- Track number of "assocs" per entry.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Feb 6 01:09:48 2007 UTC (5 years, 3 months ago) by elad
Branch: MAIN
Changes since 1.21: +82 -7 lines
Diff to previous 1.21 (colored)

PR/35253: YAMAMOTO Takashi: fileassoc hash size problem

fileassoc_table_add() was removed from the KPI and made internal. From now
fileassoc(9) will manage the optimal table size internally.

Input from and okay yamt@.

Revision 1.9.2.3 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:37 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.9.2.2: +4 -3 lines
Diff to previous 1.9.2.2 (colored)

Sync with head.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jan 26 12:36:46 2007 UTC (5 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored)

Add missing specificdata_key_delete() in fileassoc_deregister().

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jan 25 13:57:28 2007 UTC (5 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Update comment: device -> mount. No functional change.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:06 2007 UTC (5 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.9.2.1: +166 -192 lines
Diff to previous 1.9.2.1 (colored)

Sync with head.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 9 12:49:36 2007 UTC (5 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.18: +3 -6 lines
Diff to previous 1.18 (colored)

Remove advertising clause from all of my stuff.

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:05 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.18.2.1: +505 -0 lines
Diff to previous 1.18.2.1 (colored)

sync with head.

Revision 1.18.2.1, Tue Dec 26 08:55:32 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.18: +0 -505 lines
FILE REMOVED

file kern_fileassoc.c was added on branch yamt-lazymbuf on 2006-12-30 20:50:05 +0000

Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 26 08:55:32 2006 UTC (5 years, 5 months ago) by elad
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Fix a comment. No functional change.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Dec 23 08:35:43 2006 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.16: +3 -84 lines
Diff to previous 1.16 (colored)

- remove the fileassoc "tabledata" functionality.  use mountspecific instead.
- make pax_segvguard_cb static.

tested and ok'ed by elad.

Revision 1.10.4.2 / (download) - annotate - [select for diffs], Mon Dec 18 11:42:15 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.10.4.1: +205 -154 lines
Diff to previous 1.10.4.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Dec 14 09:24:54 2006 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4
Changes since 1.15: +54 -54 lines
Diff to previous 1.15 (colored)

- just associate fileassoc "table" to struct mount.
  because the latter is always available during the lifetime of the former,
  there is little point to use another global list to keep track of them.
  it also allows to remove an #ifdef FILEASSOC.

- avoid some operations (memory allocation and VOP) in fileassoc_file_lookup,
  when fileassoc table is not used.

ok'ed by elad.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 12 14:22:07 2006 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

make fileassoc_tables static.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Dec 11 15:24:28 2006 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.13: +162 -111 lines
Diff to previous 1.13 (colored)

- remove a static configuration, FILEASSOC_NHOOKS.  do it dynamically instead.
- make fileassoc_t a pointer and remove FILEASSOC_INVAL.
- clean up kern_fileassoc.c.  unify duplicated code.
- unexport fileassoc_init using RUN_ONCE(9).
- plug memory leaks in fileassoc_file_delete and fileassoc_table_delete.
- always call callbacks, regardless of the value of the associated data.

ok'ed by elad.

Revision 1.10.4.1 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:44 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.10: +15 -4 lines
Diff to previous 1.10 (colored)

sync with head.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Dec 8 13:23:22 2006 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base3
Changes since 1.12: +9 -2 lines
Diff to previous 1.12 (colored)

don't expose FILEASSOC_NHOOKS.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Nov 20 21:50:51 2006 UTC (5 years, 6 months ago) by elad
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

compare pointer against null, not zero

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:22 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.9: +29 -11 lines
Diff to previous 1.9 (colored)

Sync with head.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Oct 27 22:17:09 2006 UTC (5 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.10: +7 -3 lines
Diff to previous 1.10 (colored)

Don't leak handle.

Revision 1.5.4.4 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:48 2006 UTC (5 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.5.4.3: +61 -65 lines
Diff to previous 1.5.4.3 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

sync with head.

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:16 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.10.2.1: +524 -0 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

sync with head

Revision 1.10.2.1, Fri Sep 8 13:57:38 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.10: +0 -524 lines
FILE REMOVED

file kern_fileassoc.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:57:16 +0000

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 8 13:57:38 2006 UTC (5 years, 8 months ago) by blymn
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, rpaulo-netinet-merge-pcb
Changes since 1.9: +24 -10 lines
Diff to previous 1.9 (colored)

* Correct hashing macro so it uses FHANDLE_SIZE()
* Stop fhandle memory leaks and use the correct fhandle dealloc routine
  (thanks to Elad for these fixes)
* Remove include of kmem.h, it is not required.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Sep 6 13:37:49 2006 UTC (5 years, 8 months ago) by blymn
Branch: MAIN
Branch point for: newlock2
Changes since 1.8: +44 -62 lines
Diff to previous 1.8 (colored)

* Remove "hinted" interface
* Modify fileassoc internals to use fhandle_t instead of fileid

Revision 1.5.4.3 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:22 2006 UTC (5 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.5.4.2: +89 -27 lines
Diff to previous 1.5.4.2 (colored) to branchpoint 1.5 (colored)

sync with head.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 20 10:38:23 2006 UTC (5 years, 9 months ago) by blymn
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8
Changes since 1.7: +60 -28 lines
Diff to previous 1.7 (colored)

Add functions to the fileassoc interface to allow a "hint" to be provided
instead of performing an implicit VOP_GETATTR() when adding/looking up
fileassoc entries.

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Mon Aug 14 13:29:54 2006 UTC (5 years, 9 months ago) by tron
Branch: abandoned-netbsd-4
Changes since 1.5: +28 -1 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Pull up following revision(s) (requested by elad in ticket #15):
	sys/miscfs/specfs/spec_vnops.c: revision 1.88
	share/man/man9/fileassoc.9: revision 1.7
	sys/kern/kern_verifiedexec.c: revision 1.66
	sys/sys/verified_exec.h: revision 1.39
	sys/sys/fileassoc.h: revision 1.3
	lib/libc/gen/sysctl.3: revision 1.178
	share/man/man9/veriexec.9: revision 1.4
	sys/kern/kern_fileassoc.c: revision 1.6
Pretending to be Elad's keyboard:
fileassoc.diff adds a fileassoc_table_run() routine that allows you to
pass a callback to be called with every entry on a given mount.
veriexec.diff adds some raw device access policies: if raw disk is
opened at strict level 1, all fingerprints on this disk will be
invalidated as a safety measure. level 2 will not allow opening disk
for raw writing if we monitor it, and prevent raw writes to memory.
level 3 will not allow opening any disk for raw writing.
both update all relevant documentation.
veriexec concept is okay blymn@.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Aug 13 06:21:10 2006 UTC (5 years, 9 months ago) by xtraeme
Branch: MAIN
Changes since 1.6: +4 -1 lines
Diff to previous 1.6 (colored)

Add __KERNEL_RCSID()

Revision 1.6 / (download) - annotate - [select for diffs], Fri Aug 11 19:17:47 2006 UTC (5 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.5: +28 -1 lines
Diff to previous 1.5 (colored)

Pretending to be Elad's keyboard:

fileassoc.diff adds a fileassoc_table_run() routine that allows you to
pass a callback to be called with every entry on a given mount.

veriexec.diff adds some raw device access policies: if raw disk is
opened at strict level 1, all fingerprints on this disk will be
invalidated as a safety measure. level 2 will not allow opening disk
for raw writing if we monitor it, and prevent raw writes to memory.
level 3 will not allow opening any disk for raw writing.

both update all relevant documentation.

veriexec concept is okay blymn@.

Revision 1.5.4.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:46 2006 UTC (5 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.5.4.1: +466 -0 lines
Diff to previous 1.5.4.1 (colored) to branchpoint 1.5 (colored)

sync with head

Revision 1.5.4.1, Sun Jul 23 22:06:11 2006 UTC (5 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.5: +0 -466 lines
FILE REMOVED

file kern_fileassoc.c was added on branch yamt-pdpolicy on 2006-08-11 15:45:46 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:11 2006 UTC (5 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base
Branch point for: yamt-pdpolicy, abandoned-netbsd-4
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Use the LWP cached credentials where sane.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jul 20 09:00:41 2006 UTC (5 years, 10 months ago) by cube
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Fix an obvious overlook (struct fileassoc_hook is not defined in
fileassoc.h anymore).  I could say "please compile-test", but then, I'm not
doing it either for that commit.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jul 16 19:37:55 2006 UTC (5 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.2: +31 -4 lines
Diff to previous 1.2 (colored)

expose less api; prompted by yamt@.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jul 15 16:42:12 2006 UTC (5 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.1: +8 -4 lines
Diff to previous 1.1 (colored)

dont use magic numbers.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jul 14 18:41:40 2006 UTC (5 years, 10 months ago) by elad
Branch: MAIN

okay, since there was no way to divide this to two commits, here it goes..

introduce fileassoc(9), a kernel interface for associating meta-data with
files using in-kernel memory. this is very similar to what we had in
veriexec till now, only abstracted so it can be used more easily by more
consumers.

this also prompted the redesign of the interface, making it work on vnodes
and mounts and not directly on devices and inodes. internally, we still
use file-id but that's gonna change soon... the interface will remain
consistent.

as a result, veriexec went under some heavy changes to conform to the new
interface. since we no longer use device numbers to identify file-systems,
the veriexec sysctl stuff changed too: kern.veriexec.count.dev_N is now
kern.veriexec.tableN.* where 'N' is NOT the device number but rather a
way to distinguish several mounts.

also worth noting is the plugging of unmount/delete operations
wrt/fileassoc and veriexec.

tons of input from yamt@, wrstuden@, martin@, and christos@.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>