summaryrefslogtreecommitdiffstats
path: root/security/apparmor/domain.c
diff options
context:
space:
mode:
authorJohn Johansen2013-02-19 01:00:34 +0100
committerJohn Johansen2013-04-28 09:35:18 +0200
commit04266236b1c3030bb7f75472ac85a8b78fcfb284 (patch)
tree104b79899c3169a5767744d07eaf310a8b75044c /security/apparmor/domain.c
parentapparmor: fix auditing of domain transition failures due to incomplete policy (diff)
downloadkernel-qcow2-linux-04266236b1c3030bb7f75472ac85a8b78fcfb284.tar.gz
kernel-qcow2-linux-04266236b1c3030bb7f75472ac85a8b78fcfb284.tar.xz
kernel-qcow2-linux-04266236b1c3030bb7f75472ac85a8b78fcfb284.zip
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 7bc85c7f4573..7a78e814f0d4 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);
/*