[rtems commit] Convert jffs2 acl to struct_size
Sebastian Huber
sebh at rtems.org
Mon Jun 20 11:21:54 UTC 2022
Module: rtems
Branch: master
Commit: 55529cf3d0c960ca1232b31d23f6cc228f0bf6cd
Changeset: http://git.rtems.org/rtems/commit/?id=55529cf3d0c960ca1232b31d23f6cc228f0bf6cd
Author: Matthew Wilcox <mawilcox at microsoft.com>
Date: Thu Jun 7 07:57:19 2018 -0700
Convert jffs2 acl to struct_size
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
More information about the vc
mailing list