summaryrefslogtreecommitdiffstats
path: root/security/apparmor/domain.c
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2013-02-18 16:00:34 -0800
committerJohn Johansen <john.johansen@canonical.com>2013-04-28 00:35:18 -0700
commit04266236b1c3030bb7f75472ac85a8b78fcfb284 (patch)
tree104b79899c3169a5767744d07eaf310a8b75044c /security/apparmor/domain.c
parent17322cc3f9ba578f20b5c09fb1630bd234040008 (diff)
downloadop-kernel-dev-04266236b1c3030bb7f75472ac85a8b78fcfb284.zip
op-kernel-dev-04266236b1c3030bb7f75472ac85a8b78fcfb284.tar.gz
apparmor: Remove -W1 warnings
Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-By: Steve Beattie <sbeattie@ubuntu.com>
Diffstat (limited to 'security/apparmor/domain.c')
-rw-r--r--security/apparmor/domain.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/security/apparmor/domain.c b/security/apparmor/domain.c
index 7bc85c7..7a78e81 100644
--- a/security/apparmor/domain.c
+++ b/security/apparmor/domain.c
@@ -752,7 +752,6 @@ int aa_change_profile(const char *ns_name, const char *hname, bool onexec,
bool permtest)
{
const struct cred *cred;
- struct aa_task_cxt *cxt;
struct aa_profile *profile, *target = NULL;
struct aa_namespace *ns = NULL;
struct file_perms perms = {};
@@ -772,7 +771,6 @@ int aa_change_profile(const char *ns_name, const char *hname, bool onexec,
}
cred = get_current_cred();
- cxt = cred->security;
profile = aa_cred_profile(cred);
/*
OpenPOWER on IntegriCloud