commit | c52657d93b0530449233979514a08cf9fe5c24bc | [log] [tgz] |
---|---|---|
author | Nayna Jain <nayna@linux.ibm.com> | Tue Oct 09 23:00:35 2018 +0530 |
committer | Mimi Zohar <zohar@linux.ibm.com> | Tue Dec 11 07:13:39 2018 -0500 |
tree | a8908f484fa957cca1425c21853652da622c9cdd | |
parent | b5ca117365d960fe5e4fe272bcc8142c28769383 [diff] |
ima: refactor ima_init_policy() This patch removes the code duplication in ima_init_policy() by defining a new function named add_rules(). The new function adds the rules to the initial IMA policy, the custom policy or both based on the policy mask (IMA_DEFAULT_POLICY, IMA_CUSTOM_POLICY). Signed-off-by: Nayna Jain <nayna@linux.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>