From 9ecf925a7d952716f0fd6c5a64b072a3caee80af Mon Sep 17 00:00:00 2001 From: rwatson Date: Wed, 5 Mar 2003 23:50:15 +0000 Subject: Provide a mac_check_system_swapoff() entry point, which permits MAC modules to authorize disabling of swap against a particular vnode. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories --- sys/sys/mac.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/sys/mac.h') diff --git a/sys/sys/mac.h b/sys/sys/mac.h index 18399f7..8e25d0d 100644 --- a/sys/sys/mac.h +++ b/sys/sys/mac.h @@ -269,6 +269,7 @@ int mac_check_system_nfsd(struct ucred *cred); int mac_check_system_reboot(struct ucred *cred, int howto); int mac_check_system_settime(struct ucred *cred); int mac_check_system_swapon(struct ucred *cred, struct vnode *vp); +int mac_check_system_swapoff(struct ucred *cred, struct vnode *vp); int mac_check_system_sysctl(struct ucred *cred, int *name, u_int namelen, void *old, size_t *oldlenp, int inkernel, void *new, size_t newlen); -- cgit v1.1