[PATCH 02/13] Convert jffs2 acl to struct_size

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Jun 10 08:20:54 UTC 2022


From: Matthew Wilcox <mawilcox at microsoft.com>

Need to tell the compiler that the acl entries follow the acl header.

Signed-off-by: Matthew Wilcox <mawilcox at microsoft.com>
Signed-off-by: Kees Cook <keescook at chromium.org>
---
 cpukit/libfs/src/jffs2/src/acl.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpukit/libfs/src/jffs2/src/acl.h b/cpukit/libfs/src/jffs2/src/acl.h
index 2e2b5745c3..12d0271bdd 100644
--- a/cpukit/libfs/src/jffs2/src/acl.h
+++ b/cpukit/libfs/src/jffs2/src/acl.h
@@ -22,6 +22,7 @@ struct jffs2_acl_entry_short {
 
 struct jffs2_acl_header {
 	jint32_t	a_version;
+	struct jffs2_acl_entry	a_entries[];
 };
 
 #ifdef CONFIG_JFFS2_FS_POSIX_ACL
-- 
2.35.3



More information about the devel mailing list