apparmor: change op from int to const char *
authorJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 08:43:01 +0000 (00:43 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Mon, 16 Jan 2017 09:18:46 +0000 (01:18 -0800)
commit47f6e5cc7355e4ff2fd7ace919aa9e291077c26b
tree28afc953505fa769dafd1532b141a779b80672b9
parent55a26ebf630b6bf1cb7ddf8882fdc81d58afeaa2
apparmor: change op from int to const char *

Having ops be an integer that is an index into an op name table is
awkward and brittle. Every op change requires an edit for both the
op constant and a string in the table. Instead switch to using const
strings directly, eliminating the need for the table that needs to
be kept in sync.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/apparmorfs.c
security/apparmor/audit.c
security/apparmor/domain.c
security/apparmor/file.c
security/apparmor/include/audit.h
security/apparmor/include/file.h
security/apparmor/include/policy.h
security/apparmor/lsm.c
security/apparmor/policy.c
security/apparmor/procattr.c