summaryrefslogtreecommitdiffstats
path: root/sys/security/mac/mac_framework.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-11-19 22:12:42 +0000
committerrwatson <rwatson@FreeBSD.org>2002-11-19 22:12:42 +0000
commit3753917a2e3632a0a83440ab69ab298ffbac8b21 (patch)
tree27f9795d43925d8d413f84523fd30688a07d2995 /sys/security/mac/mac_framework.h
parented9ee57838aaff75e6f849cc92da8379cb766734 (diff)
downloadFreeBSD-src-3753917a2e3632a0a83440ab69ab298ffbac8b21.zip
FreeBSD-src-3753917a2e3632a0a83440ab69ab298ffbac8b21.tar.gz
Merge kld access control checks from the MAC tree: these access control
checks permit policy modules to augment the system policy for permitting kld operations. This permits policies to limit access to kld operations based on credential (and other) properties, as well as to perform checks on the kld being loaded (integrity, etc). Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/security/mac/mac_framework.h')
-rw-r--r--sys/security/mac/mac_framework.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/security/mac/mac_framework.h b/sys/security/mac/mac_framework.h
index 17cf52e..3e7e6bb 100644
--- a/sys/security/mac/mac_framework.h
+++ b/sys/security/mac/mac_framework.h
@@ -237,6 +237,9 @@ int mac_check_kenv_dump(struct ucred *cred);
int mac_check_kenv_get(struct ucred *cred, char *name);
int mac_check_kenv_set(struct ucred *cred, char *name, char *value);
int mac_check_kenv_unset(struct ucred *cred, char *name);
+int mac_check_kld_load(struct ucred *cred, struct vnode *vp);
+int mac_check_kld_stat(struct ucred *cred);
+int mac_check_kld_unload(struct ucred *cred);
int mac_check_mount_stat(struct ucred *cred, struct mount *mp);
int mac_check_pipe_ioctl(struct ucred *cred, struct pipe *pipe,
unsigned long cmd, void *data);
OpenPOWER on IntegriCloud