Don't implement mpo_destroy() for Biba, LOMAC, and MLS, as they
aren't allowed to be unloaded. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
This commit is contained in:
parent
72c171ccf2
commit
7a89f7f6c4
@ -487,12 +487,6 @@ mac_biba_copy(struct mac_biba *source, struct mac_biba *dest)
|
||||
/*
|
||||
* Policy module operations.
|
||||
*/
|
||||
static void
|
||||
mac_biba_destroy(struct mac_policy_conf *conf)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
mac_biba_init(struct mac_policy_conf *conf)
|
||||
{
|
||||
@ -2607,7 +2601,6 @@ mac_biba_check_vnode_write(struct ucred *active_cred,
|
||||
|
||||
static struct mac_policy_ops mac_biba_ops =
|
||||
{
|
||||
.mpo_destroy = mac_biba_destroy,
|
||||
.mpo_init = mac_biba_init,
|
||||
.mpo_init_bpfdesc_label = mac_biba_init_label,
|
||||
.mpo_init_cred_label = mac_biba_init_label,
|
||||
|
@ -598,12 +598,6 @@ try_relabel(struct mac_lomac *from, struct mac_lomac *to)
|
||||
/*
|
||||
* Policy module operations.
|
||||
*/
|
||||
static void
|
||||
mac_lomac_destroy(struct mac_policy_conf *conf)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
mac_lomac_init(struct mac_policy_conf *conf)
|
||||
{
|
||||
@ -2585,7 +2579,6 @@ mac_lomac_thread_userret(struct thread *td)
|
||||
|
||||
static struct mac_policy_ops mac_lomac_ops =
|
||||
{
|
||||
.mpo_destroy = mac_lomac_destroy,
|
||||
.mpo_init = mac_lomac_init,
|
||||
.mpo_init_bpfdesc_label = mac_lomac_init_label,
|
||||
.mpo_init_cred_label = mac_lomac_init_label,
|
||||
|
@ -453,12 +453,6 @@ mac_mls_copy(struct mac_mls *source, struct mac_mls *dest)
|
||||
/*
|
||||
* Policy module operations.
|
||||
*/
|
||||
static void
|
||||
mac_mls_destroy(struct mac_policy_conf *conf)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
mac_mls_init(struct mac_policy_conf *conf)
|
||||
{
|
||||
@ -2379,7 +2373,6 @@ mac_mls_check_vnode_write(struct ucred *active_cred, struct ucred *file_cred,
|
||||
|
||||
static struct mac_policy_ops mac_mls_ops =
|
||||
{
|
||||
.mpo_destroy = mac_mls_destroy,
|
||||
.mpo_init = mac_mls_init,
|
||||
.mpo_init_bpfdesc_label = mac_mls_init_label,
|
||||
.mpo_init_cred_label = mac_mls_init_label,
|
||||
|
Loading…
Reference in New Issue
Block a user