lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <1483265813-21250-1-git-send-email-fabf@skynet.be> Date: Sun, 1 Jan 2017 11:16:53 +0100 From: Fabian Frederick <fabf@...net.be> To: tytso@....edu, Andreas Dilger <adilger.kernel@...ger.ca> Cc: linux-ext4@...r.kernel.org, linux-kernel@...r.kernel.org, fabf@...net.be Subject: [PATCH 2/2 linux-next] ext4: return -EACCES on inode_owner_or_capable() error like other cases in ext4_ioctl() Signed-off-by: Fabian Frederick <fabf@...net.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 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists