These changes are a raw update to a vanilla kernel 4.1.10, with the
[kvmfornfv.git] / kernel / security / selinux / hooks.c
index 7f8d7f1..280235c 100644 (file)
@@ -1095,7 +1095,7 @@ static void selinux_write_opts(struct seq_file *m,
                seq_puts(m, prefix);
                if (has_comma)
                        seq_putc(m, '\"');
-               seq_puts(m, opts->mnt_opts[i]);
+               seq_escape(m, opts->mnt_opts[i], "\"\n\\");
                if (has_comma)
                        seq_putc(m, '\"');
        }