Skip to content

RFC ima,fuse: introduce new fs flag FS_IMA_NO_CACHE

Dongsu Park linux-fsdevel linux-integrity linux-security-module lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 RFC Latest2 patches 0 repliesNew
  2. v4 RFC2 patches 8 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ima: force re-appraisal on filesystems with FS_IMA_NO_CACHEinclude/linux/fs.h security/integrity/ima/ima_main.c+14 -20 replies
2/2fuse: introduce new fs_type flag FS_IMA_NO_CACHEfs/fuse/inode.c+1 -10 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSerge E. HallynSeth ForsheeDongsu ParkMiklos Szeredi
1/2A-b A-b T-b
2/2A-b A-b T-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v5 thread

Cover letter [RFC PATCH v5 0/2] ima,fuse: introduce new fs flag FS_IMA_NO_CACHE

This patchset v5 introduces a new fs flag FS_IMA_NO_CACHE and uses it in FUSE. This forces files to be re-measured, re-appraised and re-audited on file systems with the feature flag FS_IMA_NO_CACHE. In that way, cached integrity results won't be used.

There was a previous attempt (unmerged) with a IMA option named "force" and using that option for FUSE filesystems. These patches use a different approach so that the IMA subsystem does not need to know about FUSE.
- https://www.spinics.net/lists/linux-integrity/msg00948.html
- https://www.mail-archive.com/[email protected]/msg1584131.html

Changes since v1: https://www.mail-archive.com/[email protected]/msg1587390.html
- include linux-fsdevel mailing list in cc
- mark patch as RFC
- based on next-integrity, without other unmerged FUSE / IMA patches

Changes since v2: https://www.mail-archive.com/[email protected]/msg1587678.html
- rename flag to FS_IMA_NO_CACHE
- split patch into 2

Changes since v3: https://www.mail-archive.com/[email protected]/msg1592393.html
- make the code simpler by resetting IMA_DONE_MASK

Changes since v4: https://www.mail-archive.com/[email protected]/msg1598387.html
- add Acked-by from Miklos
- change ordering of patches as suggested by Miklos
- improve commit messages
- code diff since v4 is empty: only commit messages, ordering were changed

The patchset is also available in our github repo:
https://github.com/kinvolk/linux/tree/dongsu/fuse-flag-ima-nocache-v5

Alban Crequy (2):
ima: force re-appraisal on filesystems with FS_IMA_NO_CACHE
fuse: introduce new fs_type flag FS_IMA_NO_CACHE

 fs/fuse/inode.c                   |  2 +-
 include/linux/fs.h                |  1 +
 security/integrity/ima/ima_main.c | 15 +++++++++++++--
 3 files changed, 15 insertions(+), 3 deletions(-)
Signature · 1 line
2.13.6