summaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima_appraise.c
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@linux.vnet.ibm.com>2017-06-07 22:49:11 -0300
committerMimi Zohar <zohar@linux.vnet.ibm.com>2017-06-21 14:37:12 -0400
commit2663218ba6e3dd6f27df9664e00fa3eb63be3a3f (patch)
tree48b2a0f2bc3cd5468df0e0393350d2c4ac41f608 /security/integrity/ima/ima_appraise.c
parentbb543e3959b5909e7b5db4a216018c634a9d9898 (diff)
downloadblackbird-obmc-linux-2663218ba6e3dd6f27df9664e00fa3eb63be3a3f.tar.gz
blackbird-obmc-linux-2663218ba6e3dd6f27df9664e00fa3eb63be3a3f.zip
ima: Simplify policy_func_show.
If the func_tokens array uses the same indices as enum ima_hooks, policy_func_show can be a lot simpler, and the func_* enum becomes unnecessary. Also, if we use the same macro trick used by kernel_read_file_id_str we can use one hooks list for both the enum and the string array, making sure they are always in sync (suggested by Mimi Zohar). Finally, by using the printf pattern for the function token directly instead of using the pt macro we can simplify policy_func_show even further and avoid needing a temporary buffer. Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'security/integrity/ima/ima_appraise.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud