diff options
author | Robbie Ko <robbieko@synology.com> | 2018-08-21 16:17:40 +0800 |
---|---|---|
committer | Tyler Hicks <tyhicks@canonical.com> | 2019-02-16 23:18:57 +0000 |
commit | d43388dea04b18f516bd7c837d9222fe7309b12d (patch) | |
tree | 49ecee9a2b01849ef2cd7d8bb340a6311969f54a /CREDITS | |
parent | 4b47a8b51e7bc0bcd1fa8e546a6333a04ab760d8 (diff) |
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: Robbie Ko <robbieko@synology.com>
[tyhicks: Copy up lower inode attributes when successful]
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions