]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ima: fix blocking of security.ima xattrs of unsupported algorithms
authorMimi Zohar <zohar@linux.ibm.com>
Wed, 17 Aug 2022 21:18:42 +0000 (17:18 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:57:01 +0000 (09:57 +0200)
commit5e6f29a2ed378753f2f9a5210e7ef8bdaf6830ef
tree3d3816e33d9d25f752da56354f63a5e053f1518a
parenta2db2328886f3a6b11bf75cfba6968e72d819cb1
ima: fix blocking of security.ima xattrs of unsupported algorithms

[ Upstream commit 5926586f291b53cb8a0c9631fc19489be1186e2d ]

Limit validating the hash algorithm to just security.ima xattr, not
the security.evm xattr or any of the protected EVM security xattrs,
nor posix acls.

Fixes: 50f742dd9147 ("IMA: block writes of the security.ima xattr with unsupported algorithms")
Reported-by: Christian Brauner <brauner@kernel.org>
Acked-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/integrity/ima/ima_appraise.c