ima: uncover hidden variable in ima_match_rules()
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 26 Nov 2024 18:21:20 +0000 (10:21 -0800)
committerPaul Moore <paul@paul-moore.com>
Wed, 27 Nov 2024 03:58:03 +0000 (22:58 -0500)
commita65d9d1d893b124917141bd8cdf0e0e47ff96438
tree49e8578b17e2acec703036e70a848c3a754db7b4
parent8afd8c8faa24249e48f5007aee46209299377588
ima: uncover hidden variable in ima_match_rules()

The variable name "prop" is inadvertently used twice in
ima_match_rules(), resulting in incorrect use of the local
variable when the function parameter should have been.
Rename the local variable and correct the use of the parameter.

Suggested-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Acked-by: Roberto Sassu <roberto.sassu@huawei.com>
[PM: subj tweak, Roberto's ACK]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/integrity/ima/ima_policy.c