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:
Robert Watson 2003-11-17 01:04:07 +00:00
parent 8accd36ef0
commit 6afba1a91f
3 changed files with 0 additions and 21 deletions

View File

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

View File

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

View File

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