From fb46809f7da1a0556903290c924ce02a33e39783 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 25 Jul 2011 12:37:56 +0200 Subject: [PATCH] mount: remove 'seclabel' mount option on remount Reported-by: Daniel Drake Signed-off-by: Karel Zak --- mount/mount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mount/mount.c b/mount/mount.c index ea2c47822e..5278253bfc 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -431,7 +431,8 @@ static char *remove_context_options(char *opts) if (strncmp(begin, "context=", 8) == 0 || strncmp(begin, "fscontext=", 10) == 0 || strncmp(begin, "defcontext=", 11) == 0 || - strncmp(begin, "rootcontext=", 12) == 0) { + strncmp(begin, "rootcontext=", 12) == 0 || + strncmp(begin, "seclabel", 8) == 0) { size_t sz; if ((begin == opts || *(begin - 1) == ',') && *end == ',') -- 2.47.3