Skip to content
Commit d43388de authored by Robbie Ko's avatar Robbie Ko Committed by Tyler Hicks
Browse files

eCryptfs: fix permission denied with ecryptfs_xattr mount option when create readonly file



When the ecryptfs_xattr mount option is turned on, the ecryptfs
metadata will be written to xattr via vfs_setxattr, which will
check the WRITE permissions.

However, this will cause denial of permission when creating a
file withoug write permission.

So fix this by calling __vfs_setxattr directly to skip permission
check.

Signed-off-by: default avatarRobbie Ko <robbieko@synology.com>
[tyhicks: Copy up lower inode attributes when successful]
Signed-off-by: default avatarTyler Hicks <tyhicks@canonical.com>
parent 4b47a8b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment