aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorEric Snowberg <[email protected]>2023-07-25 17:56:46 -0400
committerLinus Torvalds <[email protected]>2023-07-25 15:36:22 -0700
commit18b44bc5a67275641fb26f2c54ba7eef80ac5950 (patch)
treeafa6c2f41c5b80f08a381d28b607fa8f9ee9728a /lib/test_fortify/write_overflow-strncpy-src.c
parent9f9116406120638b4d8db3831ffbc430dd2e1e95 (diff)
ovl: Always reevaluate the file signature for IMA
Commit db1d1e8b9867 ("IMA: use vfs_getattr_nosec to get the i_version") partially closed an IMA integrity issue when directly modifying a file on the lower filesystem. If the overlay file is first opened by a user and later the lower backing file is modified by root, but the extended attribute is NOT updated, the signature validation succeeds with the old original signature. Update the super_block s_iflags to SB_I_IMA_UNVERIFIABLE_SIGNATURE to force signature reevaluation on every file access until a fine grained solution can be found. Signed-off-by: Eric Snowberg <[email protected]> Signed-off-by: Mimi Zohar <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions