summaryrefslogtreecommitdiffstats
path: root/mount/mount.c
diff options
context:
space:
mode:
authorKarel Zak2011-07-25 12:37:56 +0200
committerKarel Zak2011-07-25 12:37:56 +0200
commitfb46809f7da1a0556903290c924ce02a33e39783 (patch)
tree1985fc7dfd219c47f120c00a2189805091273390 /mount/mount.c
parentlibmount: add MOUNT_2.20 version to the API (diff)
downloadkernel-qcow2-util-linux-fb46809f7da1a0556903290c924ce02a33e39783.tar.gz
kernel-qcow2-util-linux-fb46809f7da1a0556903290c924ce02a33e39783.tar.xz
kernel-qcow2-util-linux-fb46809f7da1a0556903290c924ce02a33e39783.zip
mount: remove 'seclabel' mount option on remount
Reported-by: Daniel Drake <dsd@laptop.org> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/mount.c')
-rw-r--r--mount/mount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mount/mount.c b/mount/mount.c
index ea2c47822..5278253bf 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 == ',')