/* * AppArmor security module * * This file contains AppArmor task related definitions and mediation * * Copyright 2017 Canonical Ltd. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation, version 2 of the * License. * * TODO * If a task uses change_hat it currently does not return to the old * cred or task context but instead creates a new one. Ideally the task * should return to the previous cred if it has not been modified. */ #include "include/cred.h" #include "include/task.h" /** * aa_get_task_label - Get another task's label * @task: task to query (NOT NULL) * * Returns: counted reference to @task's label */
struct aa_label *aa_get_task_label(struct task_struct *task) { struct aa_label *p; rcu_read_lock(); p = aa_get_newest_label(__aa_task_raw_label(task)); rcu_read_unlock(); return p; }Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| John Johansen | 36 | 100.00% | 2 | 100.00% |
| Total | 36 | 100.00% | 2 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp |
| John Johansen | 169 | 100.00% | 8 | 100.00% |
| Total | 169 | 100.00% | 8 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp |
| John Johansen | 50 | 100.00% | 5 | 100.00% |
| Total | 50 | 100.00% | 5 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp |
| John Johansen | 137 | 100.00% | 8 | 100.00% |
| Total | 137 | 100.00% | 8 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp |
| John Johansen | 103 | 100.00% | 8 | 100.00% |
| Total | 103 | 100.00% | 8 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp |
| John Johansen | 507 | 100.00% | 13 | 100.00% |
| Total | 507 | 100.00% | 13 | 100.00% |