From 8571060bf81d736792292b3065f93c81b02e54cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 21 Apr 2022 23:06:23 +0200 Subject: [PATCH] eis: Clarify mmap restrictions on keymap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Require to mmap using MAP_PRIVATE, to allow sealing. Signed-off-by: Jonas Ã…dahl --- src/libeis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libeis.h b/src/libeis.h index b903888..1993755 100644 --- a/src/libeis.h +++ b/src/libeis.h @@ -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.