aboutsummaryrefslogtreecommitdiffstats
path: root/security/apparmor/domain.c
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-01-19 14:08:36 -0800
committerJohn Johansen <john.johansen@canonical.com>2018-02-09 11:30:01 -0800
commit4d2f8ba3e3b76e34f84ae1de456934713e9e59af (patch)
tree27ef81949dd96ddcffeec4924962103533459a3e /security/apparmor/domain.c
parentapparmor: audit unknown signal numbers (diff)
downloadlinux-dev-4d2f8ba3e3b76e34f84ae1de456934713e9e59af.tar.xz
linux-dev-4d2f8ba3e3b76e34f84ae1de456934713e9e59af.zip
apparmor: rename task_ctx to the more accurate cred_ctx
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/domain.c')
-rw-r--r--security/apparmor/domain.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c
index 6a54d2ffa840..90967de96be0 100644
--- a/security/apparmor/domain.c
+++ b/security/apparmor/domain.c
@@ -779,7 +779,7 @@ static struct aa_label *handle_onexec(struct aa_label *label,
*/
int apparmor_bprm_set_creds(struct linux_binprm *bprm)
{
- struct aa_task_ctx *ctx;
+ struct aa_cred_ctx *ctx;
struct aa_label *label, *new = NULL;
struct aa_profile *profile;
char *buffer = NULL;
@@ -859,7 +859,7 @@ int apparmor_bprm_set_creds(struct linux_binprm *bprm)
done:
/* clear out temporary/transitional state from the context */
- aa_clear_task_ctx_trans(ctx);
+ aa_clear_cred_ctx_trans(ctx);
aa_put_label(label);
put_buffers(buffer);
@@ -1049,7 +1049,7 @@ build:
int aa_change_hat(const char *hats[], int count, u64 token, int flags)
{
const struct cred *cred;
- struct aa_task_ctx *ctx;
+ struct aa_cred_ctx *ctx;
struct aa_label *label, *previous, *new = NULL, *target = NULL;
struct aa_profile *profile;
struct aa_perms perms = {};