IMA/EVM support for PAX xattrs (patch included)
Posted: Sat Dec 03, 2016 9:10 pm
I am playing around EVM kernel feature and find out, that EVM don't protect PAX xattrs. Here is the patch to fix this and add EVM protection to PAX xattrs.
- Code: Select all
--- a/security/integrity/evm/evm_main.c
+++ b/security/integrity/evm/evm_main.c
@@ -46,6 +46,10 @@
XATTR_NAME_SMACKTRANSMUTE,
XATTR_NAME_SMACKMMAP,
#endif
+#endif
+#ifdef CONFIG_PAX_XATTR_PAX_FLAGS
+ XATTR_NAME_USER_PAX_FLAGS,
+ XATTR_NAME_PAX_FLAGS,
#endif
#ifdef CONFIG_IMA_APPRAISE
XATTR_NAME_IMA,