summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-10-27 06:54:06 +0000
committerrwatson <rwatson@FreeBSD.org>2002-10-27 06:54:06 +0000
commit8cd9e638192b755dfb25a68d8cef5abe0c9e00be (patch)
tree1612d5b0cc84eb1545dbda241cb9bb8369f47bd2 /sys/vm
parent09dbfe82dc55ef20e7c63a4c84529f2efcda0c9c (diff)
downloadFreeBSD-src-8cd9e638192b755dfb25a68d8cef5abe0c9e00be.zip
FreeBSD-src-8cd9e638192b755dfb25a68d8cef5abe0c9e00be.tar.gz
Merge from MAC tree: rename mac_check_vnode_swapon() to
mac_check_system_swapon(), to reflect the fact that the primary object of this change is the running kernel as a whole, rather than just the vnode. We'll drop additional checks of this class into the same check namespace, including reboot(), sysctl(), et al. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_swap.c b/sys/vm/vm_swap.c
index f9355a3..1781182 100644
--- a/sys/vm/vm_swap.c
+++ b/sys/vm/vm_swap.c
@@ -290,7 +290,7 @@ swaponvp(td, vp, dev, nblks)
found:
(void) vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td);
#ifdef MAC
- error = mac_check_vnode_swapon(td->td_ucred, vp);
+ error = mac_check_system_swapon(td->td_ucred, vp);
if (error == 0)
#endif
error = VOP_OPEN(vp, FREAD | FWRITE, td->td_ucred, td);
OpenPOWER on IntegriCloud