1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/sys/security/lomac
Kirk McKusick a5b65058d5 Regularize the vop_stdlock'ing protocol across all the filesystems
that use it. Specifically, vop_stdlock uses the lock pointed to by
vp->v_vnlock. By default, getnewvnode sets up vp->v_vnlock to
reference vp->v_lock. Filesystems that wish to use the default
do not need to allocate a lock at the front of their node structure
(as some still did) or do a lockinit. They can simply start using
vn_lock/VOP_UNLOCK. Filesystems that wish to manage their own locks,
but still use the vop_stdlock functions (such as nullfs) can simply
replace vp->v_vnlock with a pointer to the lock that they wish to
have used for the vnode. Such filesystems are responsible for
setting the vp->v_vnlock back to the default in their vop_reclaim
routine (e.g., vp->v_vnlock = &vp->v_lock).

In theory, this set of changes cleans up the existing filesystem
lock interface and should have no function change to the existing
locking scheme.

Sponsored by:	DARPA & NAI Labs.
2002-10-14 03:20:36 +00:00
..
kernel_interface.c - Replace v_flag with v_iflag and v_vflag 2002-08-04 10:29:36 +00:00
kernel_interface.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_lkm.c Change p_can{debug,see,sched,signal}()'s first argument to be a thread 2002-05-19 00:14:50 +00:00
kernel_log.c Get rid of warnings, there's no need to do preprocessor concatination of 2002-06-01 18:45:33 +00:00
kernel_log.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_mediate.c DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_mediate.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_mmap.c Check for defined(__i386__) instead of just defined(i386) since the compiler 2002-05-30 07:32:58 +00:00
kernel_monitor.c DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_monitor.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_pipe.c DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_pipe.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_plm.c DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_plm.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_socket.c Back out my lats commit of locking down a socket, it conflicts with hsu's work. 2002-05-31 11:52:35 +00:00
kernel_socket.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
kernel_util.c Keep a copy of the credential used to mount filesystems around so 2002-08-19 06:52:21 +00:00
kernel_util.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
lomac.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
lomacfs_subr.c Remove all use of vnode->v_tag, replacing with appropriate substitutes. 2002-09-14 09:02:28 +00:00
lomacfs_vfsops.c - Replace v_flag with v_iflag and v_vflag 2002-08-04 10:29:36 +00:00
lomacfs_vnops.c Regularize the vop_stdlock'ing protocol across all the filesystems 2002-10-14 03:20:36 +00:00
lomacfs.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
lomacio.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
policy_plm.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
syscall_gate.c DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
syscall_gate.h DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00