summaryrefslogtreecommitdiffstats
path: root/security/apparmor/lsm.c
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-10-08 00:43:02 -0700
committerJohn Johansen <john.johansen@canonical.com>2018-02-09 11:30:01 -0800
commitde62de59c27881c59c7df2e535cb9e1275cd52cc (patch)
tree931811ad47bc7d33aac279fbc3a438543d9011e6 /security/apparmor/lsm.c
parentd065f2f56522b9240acb8c5ea35e9ee25f1b33e6 (diff)
downloadlinux-de62de59c27881c59c7df2e535cb9e1275cd52cc.tar.bz2
apparmor: move task related defines and fns to task.X files
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/lsm.c')
-rw-r--r--security/apparmor/lsm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c
index fda36f3e3820..7577cd982230 100644
--- a/security/apparmor/lsm.c
+++ b/security/apparmor/lsm.c
@@ -101,7 +101,7 @@ static int apparmor_task_alloc(struct task_struct *task,
if (!new)
return -ENOMEM;
- aa_dup_task_ctx(new, current_task_ctx());
+ aa_dup_task_ctx(new, task_ctx(current));
task_ctx(task) = new;
return 0;
@@ -582,7 +582,7 @@ static int apparmor_getprocattr(struct task_struct *task, char *name,
int error = -ENOENT;
/* released below */
const struct cred *cred = get_task_cred(task);
- struct aa_task_ctx *ctx = current_task_ctx();
+ struct aa_task_ctx *ctx = task_ctx(current);
struct aa_label *label = NULL;
if (strcmp(name, "current") == 0)
@@ -705,7 +705,7 @@ static void apparmor_bprm_committing_creds(struct linux_binprm *bprm)
static void apparmor_bprm_committed_creds(struct linux_binprm *bprm)
{
/* clear out temporary/transitional state from the context */
- aa_clear_task_ctx_trans(current_task_ctx());
+ aa_clear_task_ctx_trans(task_ctx(current));
return;
}