]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: remove 'seclabel' mount option on remount
authorKarel Zak <kzak@redhat.com>
Mon, 25 Jul 2011 10:37:56 +0000 (12:37 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 25 Jul 2011 10:37:56 +0000 (12:37 +0200)
Reported-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/mount.c

index ea2c47822ec9028858aaa6f10365d8a88c7da776..5278253bfcb8592e8857200e28c5768f8344f2a2 100644 (file)
@@ -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 == ',')