Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1548869 > unrolled thread
| Started by | Fabian Frederick <fabf@skynet.be> |
|---|---|
| First post | 2017-01-01 11:20 +0100 |
| Last post | 2017-01-01 11:20 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 2/2 linux-next] ext4: return -EACCES on inode_owner_or_capable() error Fabian Frederick <fabf@skynet.be> - 2017-01-01 11:20 +0100
| From | Fabian Frederick <fabf@skynet.be> |
|---|---|
| Date | 2017-01-01 11:20 +0100 |
| Subject | [PATCH 2/2 linux-next] ext4: return -EACCES on inode_owner_or_capable() error |
| Message-ID | <sULp7-7u0-5@gated-at.bofh.it> |
like other cases in ext4_ioctl()
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
fs/ext4/ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index 4f113e6..5654ccd 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -501,7 +501,7 @@ long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
int err;
if (!inode_owner_or_capable(inode))
- return -EPERM;
+ return -EACCES;
if (ext4_has_metadata_csum(inode->i_sb)) {
ext4_warning(sb, "Setting inode version is not "
--
2.7.4
Back to top | Article view | linux.kernel
csiph-web