소스 검색

apparmor: cleanup, drop unused fn __aa_task_is_confined()

Signed-off-by: John Johansen <john.johansen@canonical.com>
John Johansen 7 년 전
부모
커밋
d065f2f565
1개의 변경된 파일0개의 추가작업 그리고 11개의 파일을 삭제
  1. 0 11
      security/apparmor/include/context.h

+ 0 - 11
security/apparmor/include/context.h

@@ -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
  *