]> git.baikalelectronics.ru Git - kernel.git/commitdiff
apparmor: cleanup, drop unused fn __aa_task_is_confined()
authorJohn Johansen <john.johansen@canonical.com>
Sun, 8 Oct 2017 07:25:27 +0000 (00:25 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 9 Feb 2018 19:30:01 +0000 (11:30 -0800)
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/include/context.h

index 8d36c14bc76d621f3d37f135cd87eab941f96e6c..b2aeb1da7e77ac62fd5e71fd46ed8f51479f2b86 100644 (file)
@@ -89,17 +89,6 @@ static inline struct aa_label *__aa_task_raw_label(struct task_struct *task)
        return aa_cred_raw_label(__task_cred(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
  *