All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] apparmor: Remove unused inline function label_is_visible()
@ 2021-09-14  9:53 YueHaibing
  0 siblings, 0 replies; only message in thread
From: YueHaibing @ 2021-09-14  9:53 UTC (permalink / raw)
  To: john.johansen, jmorris, serge, trix, yuehaibing
  Cc: linux-security-module, linux-kernel

There is no caller in tree, so can remove it.

Signed-off-by: YueHaibing <yuehaibing@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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-14  9:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14  9:53 [PATCH -next] apparmor: Remove unused inline function label_is_visible() YueHaibing

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.