Remove empty entry point functions (init, destroy, syscall) from

policies that don't need them.
This commit is contained in:
Robert Watson 2007-02-23 11:15:35 +00:00
parent faf00eecd4
commit 588ff6c0cc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166899
2 changed files with 0 additions and 32 deletions

View File

@ -82,12 +82,6 @@ static int partition_slot;
#define SLOT(l) mac_label_get((l), partition_slot)
#define SLOT_SET(l, v) mac_label_set((l), partition_slot, (v))
static void
mac_partition_init(struct mac_policy_conf *conf)
{
}
static void
mac_partition_init_label(struct label *label)
{
@ -269,7 +263,6 @@ mac_partition_check_vnode_exec(struct ucred *cred, struct vnode *vp,
static struct mac_policy_ops mac_partition_ops =
{
.mpo_init = mac_partition_init,
.mpo_init_cred_label = mac_partition_init_label,
.mpo_destroy_cred_label = mac_partition_destroy_label,
.mpo_copy_cred_label = mac_partition_copy_label,

View File

@ -277,28 +277,6 @@ SYSCTL_INT(_security_mac_test, OID_AUTO, internalize_count, CTLFLAG_RD,
#define DEBUGGER(x) printf("mac_test: %s\n", (x))
#endif
/*
* Policy module operations.
*/
static void
mac_test_destroy(struct mac_policy_conf *conf)
{
}
static void
mac_test_init(struct mac_policy_conf *conf)
{
}
static int
mac_test_syscall(struct thread *td, int call, void *arg)
{
return (0);
}
/*
* Label operations.
*/
@ -2395,9 +2373,6 @@ mac_test_check_vnode_write(struct ucred *active_cred,
static struct mac_policy_ops mac_test_ops =
{
.mpo_destroy = mac_test_destroy,
.mpo_init = mac_test_init,
.mpo_syscall = mac_test_syscall,
.mpo_init_bpfdesc_label = mac_test_init_bpfdesc_label,
.mpo_init_cred_label = mac_test_init_cred_label,
.mpo_init_devfsdirent_label = mac_test_init_devfsdirent_label,