mnt_idmapping: move ima-only helpers to ima
authorChristian Brauner <brauner@kernel.org>
Tue, 13 Dec 2022 11:28:51 +0000 (12:28 +0100)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Tue, 13 Dec 2022 11:28:51 +0000 (12:28 +0100)
commit2c05bf3aa0741f4f3c72432db7801371dbbcf289
tree006299bcc8cec080b3db815b3176c47615af7596
parent764822972d64e7f3e6792278ecc7a3b3c81087cd
mnt_idmapping: move ima-only helpers to ima

The vfs{g,u}id_{gt,lt}_* helpers are currently not needed outside of
ima and we shouldn't incentivize people to use them by placing them into
the header. Let's just define them locally in the one file in ima where
they are used.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
include/linux/mnt_idmapping.h
security/integrity/ima/ima_policy.c