apparmor: change aad apparmor_audit_data macro to a fn macro
authorJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 08:43:02 +0000 (00:43 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 09:18:47 +0000 (01:18 -0800)
commitef88a7ac55fdd3bf6ac3942b83aa29311b45339b
tree54c6b15e2101650dd169caf745bdb17521db899c
parent47f6e5cc7355e4ff2fd7ace919aa9e291077c26b
apparmor: change aad apparmor_audit_data macro to a fn macro

The aad macro can replace aad strings when it is not intended to. Switch
to a fn macro so it is only applied when intended.

Also at the same time cleanup audit_data initialization by putting
common boiler plate behind a macro, and dropping the gfp_t parameter
which will become useless.

Signed-off-by: John Johansen <john.johansen@canonical.com>
12 files changed:
security/apparmor/audit.c
security/apparmor/capability.c
security/apparmor/domain.c
security/apparmor/file.c
security/apparmor/include/audit.h
security/apparmor/include/file.h
security/apparmor/ipc.c
security/apparmor/lib.c
security/apparmor/lsm.c
security/apparmor/policy.c
security/apparmor/policy_unpack.c
security/apparmor/resource.c