summaryrefslogtreecommitdiffstats
path: root/sys/sys/mac.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-03-05 23:50:15 +0000
committerrwatson <rwatson@FreeBSD.org>2003-03-05 23:50:15 +0000
commit9ecf925a7d952716f0fd6c5a64b072a3caee80af (patch)
treea528f54ce13be77b6cce282371e23bf45a6d45ad /sys/sys/mac.h
parent3158a8710ade4d09a7a6763dceb8f57a09acfa9d (diff)
downloadFreeBSD-src-9ecf925a7d952716f0fd6c5a64b072a3caee80af.zip
FreeBSD-src-9ecf925a7d952716f0fd6c5a64b072a3caee80af.tar.gz
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
Diffstat (limited to 'sys/sys/mac.h')
-rw-r--r--sys/sys/mac.h1
1 files changed, 1 insertions, 0 deletions
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);
OpenPOWER on IntegriCloud