OSDN Git Service

apparmor: drop cred_ctx and reference the label directly
authorJohn Johansen <john.johansen@canonical.com>
Fri, 27 Jan 2017 11:53:53 +0000 (03:53 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 9 Feb 2018 19:30:01 +0000 (11:30 -0800)
commitd9087c49d4388e3f35f09a5cf7ed6e09c9106604
treecdc1032157a2cb4ceb8c8f5278f7a280acf9d463
parent3b529a7600d834f450ac244f43a7c082687284b4
apparmor: drop cred_ctx and reference the label directly

With the task domain change information now stored in the task->security
context, the cred->security context only stores the label. We can get
rid of the cred_ctx and directly reference the label, removing a layer
of indirection, and unneeded extra allocations.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/context.c
security/apparmor/domain.c
security/apparmor/include/context.h
security/apparmor/lsm.c