projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
arm64: rockchip_defconfig: disable unused ethernet driver
[firefly-linux-kernel-4.4.55.git]
/
fs
/
ext4
/
crypto_policy.c
diff --git
a/fs/ext4/crypto_policy.c
b/fs/ext4/crypto_policy.c
index ad050698143fde483e9c5cddc5e32c88041a9b29..8a9feb341f314ea94f7f4e5984aea57f4b8e20a4 100644
(file)
--- a/
fs/ext4/crypto_policy.c
+++ b/
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;