Skip to content

evm: disable EVM on overlayfs

Mimi Zohar linux-integrity linux-unionfs lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 5 repliesIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

Addressed Amir's comments:
- Simplified security_inode_copy_up_xattr() return.
- Identified filesystems that don't support EVM based on a new SB_I flag.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3evm: don't copy up 'security.evm' xattrinclude/linux/evm.h security/integrity/evm/evm_main.c security/security.c+14 -10 replies
2/3evm: add support to disable EVM on unsupported filesystemsinclude/linux/fs.h security/integrity/evm/evm_main.c+35 -12 replies
3/3overlay: disable EVMfs/overlayfs/super.c+1 -01 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAmir GoldsteinChristian Brauner
SeriesR-b
1/3R-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] evm: disable EVM on overlayfs

EVM verifies the existing 'security.evm' value, before allowing it to be updated. The EVM HMAC and the original file signatures contain filesystem specific metadata (e.g. i_ino, i_generation and s_uuid).

This poses a challenge when transitioning from the lower backing file to the upper backing file.

Until a complete solution is developed, disable EVM on overlayfs.

Changelog v2:
Addressed Amir's comments:
- Simplified security_inode_copy_up_xattr() return.
- Identified filesystems that don't support EVM based on a new SB_I flag.

Mimi Zohar (3):
evm: don't copy up 'security.evm' xattr
evm: add support to disable EVM on unsupported filesystems
overlay: disable EVM

 fs/overlayfs/super.c              |  1 +
 include/linux/evm.h               |  6 +++++
 include/linux/fs.h                |  1 +
 security/integrity/evm/evm_main.c | 42 ++++++++++++++++++++++++++++++-
 security/security.c               |  2 +-
 5 files changed, 50 insertions(+), 2 deletions(-)
Signature · 1 line
2.39.3