lkml.org 
[lkml]   [2021]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next] apparmor: Remove unused inline function label_is_visible()
Date
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
\
 
 \ /
  Last update: 2021-09-14 11:54    [W:4.086 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site