Provide stub mpo_syscall() implementations for mac_none and mac_test.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
This commit is contained in:
Robert Watson 2002-08-20 02:53:35 +00:00
parent 0a9b91cde1
commit 8a97ecf648
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102162
3 changed files with 27 additions and 0 deletions

View File

@ -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,

View File

@ -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,

View File

@ -187,6 +187,13 @@ mac_test_init(struct mac_policy_conf *conf)
}
static int
mac_test_syscall(struct thread *td, int call, void *arg)
{
return (0);
}
/*
* Label operations.
*/
@ -1142,6 +1149,8 @@ static struct mac_policy_op_entry mac_test_ops[] =
(macop_t)mac_test_destroy },
{ MAC_INIT,
(macop_t)mac_test_init },
{ MAC_SYSCALL,
(macop_t)mac_test_syscall },
{ MAC_INIT_BPFDESC,
(macop_t)mac_test_init_bpfdesc },
{ MAC_INIT_CRED,