lkml.org 
[lkml]   [2018]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 05/18] fs_context: fix mount option blacklist
Date
From: Eric Biggers <ebiggers@google.com>

The blacklist didn't actually do anything, since match_token() always
returned 0.

Fixes: 8a2e54b8af88 ("vfs: Implement a filesystem superblock creation/configuration context")
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
fs/fs_context.c | 40 ++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/fs/fs_context.c b/fs/fs_context.c
index a0e22f4c6b64a..7a8d1ed34ae71 100644
--- a/fs/fs_context.c
+++ b/fs/fs_context.c
@@ -65,26 +65,26 @@ static const match_table_t common_clear_sb_flag = {
};

static const match_table_t forbidden_sb_flag = {
- { 0, "bind" },
- { 0, "move" },
- { 0, "private" },
- { 0, "remount" },
- { 0, "shared" },
- { 0, "slave" },
- { 0, "unbindable" },
- { 0, "rec" },
- { 0, "noatime" },
- { 0, "relatime" },
- { 0, "norelatime" },
- { 0, "strictatime" },
- { 0, "nostrictatime" },
- { 0, "nodiratime" },
- { 0, "dev" },
- { 0, "nodev" },
- { 0, "exec" },
- { 0, "noexec" },
- { 0, "suid" },
- { 0, "nosuid" },
+ { 1, "bind" },
+ { 1, "move" },
+ { 1, "private" },
+ { 1, "remount" },
+ { 1, "shared" },
+ { 1, "slave" },
+ { 1, "unbindable" },
+ { 1, "rec" },
+ { 1, "noatime" },
+ { 1, "relatime" },
+ { 1, "norelatime" },
+ { 1, "strictatime" },
+ { 1, "nostrictatime" },
+ { 1, "nodiratime" },
+ { 1, "dev" },
+ { 1, "nodev" },
+ { 1, "exec" },
+ { 1, "noexec" },
+ { 1, "suid" },
+ { 1, "nosuid" },
{ },
};

--
2.18.0
\
 
 \ /
  Last update: 2018-07-08 23:10    [W:0.090 / U:10.288 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site