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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102162
@ -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 New Issue
Block a user