/* Initially, ima_measure points to the default policy rules, now point to the new policy rules, and remove the securityfs policy file, assuming a valid policy.  */
static int ima_release_policy(struct inode *inode, struct file *file)
/* Initially, ima_measure points to the default policy rules, now point to the new policy rules, and remove the securityfs policy file, assuming a valid policy.  */
static int ima_release_policy(struct inode *inode, struct file *file)
{
	if (!valid_policy) {
		ima_delete_rules();
		valid_policy = 1;
		atomic_set(&policy_opencount, 1);
		return 0;
	}
	ima_update_policy();
	securityfs_remove(ima_policy);
	ima_policy = NULL;
	return 0;
}