Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
fs
/
ext4
/
crypto_policy.c
diff --git
a/kernel/fs/ext4/crypto_policy.c
b/kernel/fs/ext4/crypto_policy.c
index
ad05069
..
8a9feb3
100644
(file)
--- a/
kernel/fs/ext4/crypto_policy.c
+++ b/
kernel/fs/ext4/crypto_policy.c
@@
-102,6
+102,9
@@
static int ext4_create_encryption_context_from_policy(
int ext4_process_policy(const struct ext4_encryption_policy *policy,
struct inode *inode)
{
+ if (!inode_owner_or_capable(inode))
+ return -EACCES;
+
if (policy->version != 0)
return -EINVAL;