From: "Pratyush Yadav (Google)" <[email protected]>
Hi,
This series adds support for preserving file seals when preserving a
memfd using LUO. Patch 1 exports some memfd seal manipulation functions
and patch 2 adds support for preserving them. Since it makes changes to
the serialized data structure for memfd, it also bumps the version
number.
I also plan to add some tests for this. I quickly hacked together
something to test this series, but I am working on some patches
that would add multiple selftests for memfd preservation. It might take
me a couple weeks to get to it, so sending the main support now in the
hopes of making it into the upcoming merge window.
Regards,
Pratyush Yadav
Pratyush Yadav (Google) (2):
memfd: export memfd_{add,get}_seals()
mm: memfd_luo: preserve file seals
include/linux/kho/abi/memfd.h | 9 ++++++++-
include/linux/memfd.h | 12 ++++++++++++
mm/memfd.c | 4 ++--
mm/memfd_luo.c | 23 +++++++++++++++++++++--
4 files changed, 43 insertions(+), 5 deletions(-)
--
2.52.0.457.g6b5491de43-goog