diff options
| -rw-r--r-- | security/integrity/evm/evm_crypto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/integrity/evm/evm_crypto.c b/security/integrity/evm/evm_crypto.c index a46fba322340..facf9cdd577d 100644 --- a/security/integrity/evm/evm_crypto.c +++ b/security/integrity/evm/evm_crypto.c | |||
| @@ -200,7 +200,8 @@ static int evm_calc_hmac_or_hash(struct dentry *dentry, | |||
| 200 | int size; | 200 | int size; |
| 201 | bool ima_present = false; | 201 | bool ima_present = false; |
| 202 | 202 | ||
| 203 | if (!(inode->i_opflags & IOP_XATTR)) | 203 | if (!(inode->i_opflags & IOP_XATTR) || |
| 204 | inode->i_sb->s_user_ns != &init_user_ns) | ||
| 204 | return -EOPNOTSUPP; | 205 | return -EOPNOTSUPP; |
| 205 | 206 | ||
| 206 | desc = init_desc(type); | 207 | desc = init_desc(type); |
