Continue cleanup and sync of mac_biba and mac_mls policies to the
TrustedBSD MAC Perforce tree. Remove unused functions mac_biba_equal_range and mac_mls_equal_range, which determined if the ranges in two range-enabled labels were equal. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
This commit is contained in:
parent
0a7d7bdc02
commit
13763f5074
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103758
@ -232,19 +232,6 @@ mac_biba_equal_element(struct mac_biba_element *a, struct mac_biba_element *b)
|
||||
return (a->mbe_type == b->mbe_type && a->mbe_grade == b->mbe_grade);
|
||||
}
|
||||
|
||||
static int
|
||||
mac_biba_equal_range(struct mac_biba *a, struct mac_biba *b)
|
||||
{
|
||||
|
||||
KASSERT((a->mb_flags & MAC_BIBA_FLAG_RANGE) != 0,
|
||||
("mac_biba_equal_range: a not range"));
|
||||
KASSERT((b->mb_flags & MAC_BIBA_FLAG_RANGE) != 0,
|
||||
("mac_biba_equal_range: b not range"));
|
||||
|
||||
return (mac_biba_equal_element(&a->mb_rangelow, &b->mb_rangelow) &&
|
||||
mac_biba_equal_element(&a->mb_rangehigh, &b->mb_rangehigh));
|
||||
}
|
||||
|
||||
static int
|
||||
mac_biba_equal_single(struct mac_biba *a, struct mac_biba *b)
|
||||
{
|
||||
|
@ -221,19 +221,6 @@ mac_mls_equal_element(struct mac_mls_element *a, struct mac_mls_element *b)
|
||||
return (a->mme_type == b->mme_type && a->mme_level == b->mme_level);
|
||||
}
|
||||
|
||||
static int
|
||||
mac_mls_equal_range(struct mac_mls *a, struct mac_mls *b)
|
||||
{
|
||||
|
||||
KASSERT((a->mm_flags & MAC_MLS_FLAG_RANGE) != 0,
|
||||
("mac_mls_equal_range: a not range"));
|
||||
KASSERT((b->mm_flags & MAC_MLS_FLAG_RANGE) != 0,
|
||||
("mac_mls_equal_range: b not range"));
|
||||
|
||||
return (mac_mls_equal_element(&a->mm_rangelow, &b->mm_rangelow) &&
|
||||
mac_mls_equal_element(&a->mm_rangehigh, &b->mm_rangehigh));
|
||||
}
|
||||
|
||||
static int
|
||||
mac_mls_equal_single(struct mac_mls *a, struct mac_mls *b)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user