summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorTingmao Wang <m@maowtm.org>2026-06-12 04:48:47 +0300
committerMickaël Salaün <mic@digikod.net>2026-06-14 21:17:18 +0300
commita260c0055665fc38804400b3dbdca165d5e0aa15 (patch)
treea510d7be59c9c2efdfe612aa9a7c475ff05adc0b /include/linux/stackprotector.h
parent299eccf996681273da0290f47db710de8d61c163 (diff)
downloadlinux-a260c0055665fc38804400b3dbdca165d5e0aa15.tar.xz
landlock: Add a place for flags to layer rules
To avoid unnecessarily increasing the size of struct landlock_layer, we make the layer level a u8 and use the space to store the flags struct. struct layer_access_masks is renamed to struct layer_masks, and a new field is added to track whether a quiet flag rule is seen for each layer. Through use of bitfields, this does not increase the size of the struct. Cc: Justin Suess <utilityemal77@gmail.com> Assisted-by: GitHub-Copilot:claude-opus-4.8 copilot-review Signed-off-by: Tingmao Wang <m@maowtm.org> Co-developed-by: Justin Suess <utilityemal77@gmail.com> Signed-off-by: Justin Suess <utilityemal77@gmail.com> Tested-by: Justin Suess <utilityemal77@gmail.com> Link: https://patch.msgid.link/be3fec3927bc9faaacd4ce0e7f0d1ff5474e2210.1781228815.git.m@maowtm.org [mic: Fix comment formatting] Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions