summaryrefslogtreecommitdiffstats
path: root/kernel/security/selinux/hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/security/selinux/hooks.c')
-rw-r--r--kernel/security/selinux/hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/security/selinux/hooks.c b/kernel/security/selinux/hooks.c
index 7f8d7f19e..280235cc3 100644
--- a/kernel/security/selinux/hooks.c
+++ b/kernel/security/selinux/hooks.c
@@ -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, '\"');
}