summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs
diff options
context:
space:
mode:
authorMatthew Wilcox <mawilcox@microsoft.com>2018-06-07 07:57:19 -0700
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-06-20 13:25:32 +0200
commit55529cf3d0c960ca1232b31d23f6cc228f0bf6cd (patch)
treecbb77e53be1e2953d9892f10c8ab6a8f9edc43c1 /cpukit/libfs
parentjffs2: Use RTEMS_CONTAINER_OF (diff)
downloadrtems-55529cf3d0c960ca1232b31d23f6cc228f0bf6cd.tar.bz2
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@microsoft.com> Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'cpukit/libfs')
-rw-r--r--cpukit/libfs/src/jffs2/src/acl.h1
1 files changed, 1 insertions, 0 deletions
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