Skip to content
Commit b36f281f authored by Mimi Zohar's avatar Mimi Zohar
Browse files

ima: initialize the "template" field with the default template



IMA policy rules are walked sequentially.  Depending on the ordering of
the policy rules, the "template" field might be defined in one rule, but
will be replaced by subsequent, applicable rules, even if the rule does
not explicitly define the "template" field.

This patch initializes the "template" once and only replaces the
"template", when explicitly defined.

Fixes: 19453ce0 ("IMA: support for per policy rule template formats")
Signed-off-by: default avatarMimi Zohar <zohar@linux.ibm.com>
parent 609488bc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment