summaryrefslogtreecommitdiffstats
path: root/security/apparmor/include
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-10-08 00:25:27 -0700
committerJohn Johansen <john.johansen@canonical.com>2018-02-09 11:30:01 -0800
commitd065f2f56522b9240acb8c5ea35e9ee25f1b33e6 (patch)
tree6c150aea41f5da4f9454e7345dbd7ed8946f639e /security/apparmor/include
parente1a03f627b5254fa1ee83bd0761490f31ea2e382 (diff)
downloadblackbird-obmc-linux-d065f2f56522b9240acb8c5ea35e9ee25f1b33e6.tar.gz
blackbird-obmc-linux-d065f2f56522b9240acb8c5ea35e9ee25f1b33e6.zip
apparmor: cleanup, drop unused fn __aa_task_is_confined()
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/include')
-rw-r--r--security/apparmor/include/context.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/security/apparmor/include/context.h b/security/apparmor/include/context.h
index 8d36c14bc76d..b2aeb1da7e77 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)
OpenPOWER on IntegriCloud