diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2006-12-28 21:15:37 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2006-12-28 21:15:37 +0000 |
commit | d5fb913feb31eb1614aa7054778a5f32f65f7f38 (patch) | |
tree | fcc80f994f4d7bbd991ae7c2cd4db2ba9fdbdd3d /sys/security/mac/mac_framework.c | |
parent | a0cacdeada53e0b4331bf5c806038afc27bfd59f (diff) | |
download | src-d5fb913feb31eb1614aa7054778a5f32f65f7f38.tar.gz src-d5fb913feb31eb1614aa7054778a5f32f65f7f38.zip |
Move mac_init_label() and mac_destroy_label() from mac_framework.c to
mac_label.c, and use these instead of replicated code in the label zone
constructor and destructor.
Obtained from: TrustedBSD Project
Notes
Notes:
svn path=/head/; revision=165593
Diffstat (limited to 'sys/security/mac/mac_framework.c')
-rw-r--r-- | sys/security/mac/mac_framework.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/sys/security/mac/mac_framework.c b/sys/security/mac/mac_framework.c index 3f3e9b029c80..f248e55742bf 100644 --- a/sys/security/mac/mac_framework.c +++ b/sys/security/mac/mac_framework.c @@ -559,25 +559,6 @@ mac_error_select(int error1, int error2) return (error2); } -void -mac_init_label(struct label *label) -{ - - bzero(label, sizeof(*label)); - label->l_flags = MAC_FLAG_INITIALIZED; -} - -void -mac_destroy_label(struct label *label) -{ - - KASSERT(label->l_flags & MAC_FLAG_INITIALIZED, - ("destroying uninitialized label")); - - bzero(label, sizeof(*label)); - /* implicit: label->l_flags &= ~MAC_FLAG_INITIALIZED; */ -} - int mac_check_structmac_consistent(struct mac *mac) { |