mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
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:
parent
0a9b91cde1
commit
8a97ecf648
3 changed files with 27 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue