ima: Replace zero-length array with flexible-array member
Gustavo A. R. Silva authored
There is a regular need in the kernel to provide a way to declare having a
dynamically sized set of trailing elements in a structure. Kernel code should
always use “flexible array members”[1] for these cases. The older style of
one-element or zero-length arrays should no longer be used[2].

[1] https://en.wikipedia.org/wiki/Flexible_array_member
[2] https://www.kernel.org/doc/html/v5.9-rc1/process/deprecated.html#zero-length-and-one-element-arrays

Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
4739eeaf
Name Last commit Last update
..
apparmor treewide: Use fallthrough pseudo-keyword
bpf bpf: Implement bpf_local_storage for inodes
integrity ima: Replace zero-length array with flexible-array member
keys task_work: cleanup notification modes
loadpin LSM: Add "contents" flag to kernel_read_file hook
lockdown Merge branch 'next-general' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
safesetid LSM: SafeSetID: Fix warnings reported by test bot
selinux Merge tag 'char-misc-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
smack Merge tag 'Smack-for-5.10' of git://github.com/cschaufler/smack-next
tomoyo tomoyo: Loosen pathname/domainname validation.
yama task_work: cleanup notification modes
Kconfig Replace HTTP links with HTTPS ones: security
Kconfig.hardening security: allow using Clang's zero initialization for stack variables
Makefile device_cgroup: Cleanup cgroup eBPF device filter code
commoncap.c exec: Compute file based creds only once
device_cgroup.c device_cgroup: Fix RCU list debugging warning
inode.c Merge branch 'work.mount0' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
lsm_audit.c audit: purge audit_log_string from the intra-kernel audit API
min_addr.c sysctl: pass kernel pointers to ->proc_handler
security.c LSM: Add "contents" flag to kernel_read_file hook