summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_stub/mac_stub.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-08-20 02:53:35 +0000
committerrwatson <rwatson@FreeBSD.org>2002-08-20 02:53:35 +0000
commitd4026d9db720dfcc6a6953d7aaaf3e7897353536 (patch)
treeae73bd77d77679134c20ef68fb95a3953e494922 /sys/security/mac_stub/mac_stub.c
parent11f2a24707c2005326b0d5e9df483fc22c7753f2 (diff)
downloadFreeBSD-src-d4026d9db720dfcc6a6953d7aaaf3e7897353536.zip
FreeBSD-src-d4026d9db720dfcc6a6953d7aaaf3e7897353536.tar.gz
Provide stub mpo_syscall() implementations for mac_none and mac_test.
Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'sys/security/mac_stub/mac_stub.c')
-rw-r--r--sys/security/mac_stub/mac_stub.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/security/mac_stub/mac_stub.c b/sys/security/mac_stub/mac_stub.c
index e473dd8..0813011 100644
--- a/sys/security/mac_stub/mac_stub.c
+++ b/sys/security/mac_stub/mac_stub.c
@@ -98,6 +98,13 @@ mac_none_init(struct mac_policy_conf *conf)
}
+static int
+mac_none_syscall(struct thread *td, int call, void *arg)
+{
+
+ return (0);
+}
+
/*
* Label operations.
*/
@@ -934,6 +941,8 @@ static struct mac_policy_op_entry mac_none_ops[] =
(macop_t)mac_none_destroy },
{ MAC_INIT,
(macop_t)mac_none_init },
+ { MAC_SYSCALL,
+ (macop_t)mac_none_syscall },
{ MAC_INIT_BPFDESC,
(macop_t)mac_none_init_bpfdesc },
{ MAC_INIT_CRED,
OpenPOWER on IntegriCloud