[PATCH -next] apparmor: Remove unused inline function label_is_visible()
YueHaibing
yuehaibing at huawei.com
Tue Sep 14 09:53:12 UTC 2021
There is no caller in tree, so can remove it.
Signed-off-by: YueHaibing <yuehaibing at huawei.com>
---
security/apparmor/label.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/security/apparmor/label.c b/security/apparmor/label.c
index 6222fdfebe4e..a86ac938ca88 100644
--- a/security/apparmor/label.c
+++ b/security/apparmor/label.c
@@ -1255,12 +1255,6 @@ struct aa_label *aa_label_merge(struct aa_label *a, struct aa_label *b,
return label;
}
-static inline bool label_is_visible(struct aa_profile *profile,
- struct aa_label *label)
-{
- return aa_ns_visible(profile->ns, labels_ns(label), true);
-}
-
/* match a profile and its associated ns component if needed
* Assumes visibility test has already been done.
* If a subns profile is not to be matched should be prescreened with
--
2.17.1
More information about the Linux-security-module-archive
mailing list