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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 29 Oct 2020 23:46:36 +0800 From: xiakaixu1987@...il.com To: linux-ext4@...r.kernel.org Cc: tytso@....edu, adilger.kernel@...ger.ca, Kaixu Xia <kaixuxia@...cent.com> Subject: [PATCH] ext4: report error message when setting usrjquota or grpjquota options failed From: Kaixu Xia <kaixuxia@...cent.com> The macro MOPT_Q is used to indicates the mount option is quota stuff and would be the same as MOPT_NOSUPPORT when CONFIG_QUOTA is disabled. We want to report NOSUPPORT error message when setting usrjquota or grpjquota options with the CONFIG_QUOTA is disabled, but now it report nothing. So fix it by adding the MOPT_STRING flag. Signed-off-by: Kaixu Xia <kaixuxia@...cent.com> --- fs/ext4/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 83fdde498414..a26ba4cf5626 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -2025,8 +2025,8 @@ static const struct mount_opts { {Opt_noquota, (EXT4_MOUNT_QUOTA | EXT4_MOUNT_USRQUOTA | EXT4_MOUNT_GRPQUOTA | EXT4_MOUNT_PRJQUOTA), MOPT_CLEAR | MOPT_Q}, - {Opt_usrjquota, 0, MOPT_Q}, - {Opt_grpjquota, 0, MOPT_Q}, + {Opt_usrjquota, 0, MOPT_Q | MOPT_STRING}, + {Opt_grpjquota, 0, MOPT_Q | MOPT_STRING}, {Opt_offusrjquota, 0, MOPT_Q}, {Opt_offgrpjquota, 0, MOPT_Q}, {Opt_jqfmt_vfsold, QFMT_VFS_OLD, MOPT_QFMT}, -- 2.20.0
Powered by blists - more mailing lists