evm: Translate user/group ids relative to s_user_ns when computing HMAC
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 5 Feb 2015 16:44:50 +0000 (10:44 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 5 Jul 2016 20:13:10 +0000 (15:13 -0500)
commit0b3c9761d1e405514a551ed24d3ea89aea26ce14
tree89788915d79a0a32b078780ab9181e3c76a13200
parent5c0048280babd579fa9e5f0e787122b06aee3f3b
evm: Translate user/group ids relative to s_user_ns when computing HMAC

The EVM HMAC should be calculated using the on disk user and
group ids, so the k[ug]ids in the inode must be translated
relative to the s_user_ns of the inode's super block.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
security/integrity/evm/evm_crypto.c