eis: Clarify mmap restrictions on keymap

Require to mmap using MAP_PRIVATE, to allow sealing.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
Jonas Ådahl 2022-04-21 23:06:23 +02:00
parent 05438a17df
commit 8571060bf8

View file

@ -859,7 +859,7 @@ eis_device_resume(struct eis_device *device);
* @param type The type of the keymap.
* @param fd A memmap-able file descriptor of size @a size pointing to the
* keymap used by this device. @a fd can be closed by the caller after this
* function completes.
* function completes. The file descriptor needs to be mmap:ed with MAP_PRIVATE.
* @param size The size of the data at @a fd in bytes
*
* @return A keymap object or `NULL` on failure.