/* * AppArmor security module * * This file contains AppArmor functions used to manipulate object security * contexts. * * Copyright (C) 1998-2008 Novell/SUSE * Copyright 2009-2010 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. * * * AppArmor sets confinement on every task, via the the aa_task_cxt and * the aa_task_cxt.profile, both of which are required and are not allowed * to be NULL. The aa_task_cxt is not reference counted and is unique * to each cred (which is reference count). The profile pointed to by * the task_cxt is reference counted. * * 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/context.h" #include "include/policy.h" /** * aa_alloc_task_context - allocate a new task_cxt * @flags: gfp flags for allocation * * Returns: allocated buffer or NULL on failure */
struct aa_task_cxt *aa_alloc_task_context(gfp_t flags) { return kzalloc(sizeof(struct aa_task_cxt), flags); }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
john johansen | john johansen | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john johansen | john johansen | 42 | 100.00% | 1 | 100.00% |
Total | 42 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john johansen | john johansen | 43 | 100.00% | 1 | 100.00% |
Total | 43 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john johansen | john johansen | 36 | 100.00% | 1 | 100.00% |
Total | 36 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john johansen | john johansen | 113 | 100.00% | 4 | 100.00% |
Total | 113 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john johansen | john johansen | 65 | 100.00% | 2 | 100.00% |
Total | 65 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john johansen | john johansen | 134 | 100.00% | 3 | 100.00% |
Total | 134 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john johansen | john johansen | 114 | 100.00% | 4 | 100.00% |
Total | 114 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
john johansen | john johansen | 584 | 100.00% | 5 | 100.00% |
Total | 584 | 100.00% | 5 | 100.00% |