[PATCH openEuler-1.0-LTS] ima: fix deadlock when traversing "ima_default_rules".