ima: rename IMA_ACTION_FLAGS to IMA_NONACTION_FLAGS
authorMimi Zohar <zohar@linux.ibm.com>
Tue, 28 Dec 2021 14:53:14 +0000 (09:53 -0500)
committerMimi Zohar <zohar@linux.ibm.com>
Tue, 15 Feb 2022 16:21:59 +0000 (11:21 -0500)
commitaae6ccbd826d26730a6fd9bc01884f0a0a9cbb25
tree978973744ca1b7c07dd76ce1afc65a861f069a77
parente4e071baea41e43aebd7f17ed1ffceeca6aa9868
ima: rename IMA_ACTION_FLAGS to IMA_NONACTION_FLAGS

Simple policy rule options, such as fowner, uid, or euid, can be checked
immediately, while other policy rule options, such as requiring a file
signature, need to be deferred.

The 'flags' field in the integrity_iint_cache struct contains the policy
action', 'subaction', and non action/subaction.

action: measure/measured, appraise/appraised, (collect)/collected,
        audit/audited
subaction: appraise status for each hook (e.g. file, mmap, bprm, read,
        creds)
non action/subaction: deferred policy rule options and state

Rename the IMA_ACTION_FLAGS to IMA_NONACTION_FLAGS.

Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_main.c
security/integrity/ima/ima_policy.c
security/integrity/integrity.h