diff options
author | Karel Zak | 2011-07-25 12:37:56 +0200 |
---|---|---|
committer | Karel Zak | 2011-07-25 12:37:56 +0200 |
commit | fb46809f7da1a0556903290c924ce02a33e39783 (patch) | |
tree | 1985fc7dfd219c47f120c00a2189805091273390 /mount | |
parent | libmount: add MOUNT_2.20 version to the API (diff) | |
download | kernel-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')
-rw-r--r-- | mount/mount.c | 3 |
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 == ',') |