From: John Johansen Date: Sun, 8 Oct 2017 07:25:27 +0000 (-0700) Subject: apparmor: cleanup, drop unused fn __aa_task_is_confined() X-Git-Tag: v5.15~8606^2~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d065f2f56522b9240acb8c5ea35e9ee25f1b33e6;p=platform%2Fkernel%2Flinux-starfive.git apparmor: cleanup, drop unused fn __aa_task_is_confined() Signed-off-by: John Johansen --- diff --git a/security/apparmor/include/context.h b/security/apparmor/include/context.h index 8d36c14..b2aeb1d 100644 --- a/security/apparmor/include/context.h +++ b/security/apparmor/include/context.h @@ -90,17 +90,6 @@ static inline struct aa_label *__aa_task_raw_label(struct task_struct *task) } /** - * __aa_task_is_confined - determine if @task has any confinement - * @task: task to check confinement of (NOT NULL) - * - * If @task != current needs to be called in RCU safe critical section - */ -static inline bool __aa_task_is_confined(struct task_struct *task) -{ - return !unconfined(__aa_task_raw_label(task)); -} - -/** * aa_current_raw_label - find the current tasks confining label * * Returns: up to date confining label or the ns unconfined label (NOT NULL)