summaryrefslogtreecommitdiffstats
path: root/kernel/nsproxy.c
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2024-04-25 06:44:00 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2024-05-08 09:31:21 +0200
commit96d88f65adfbcaca153afd7d3e20d74ba379c599 (patch)
treedf08d2b2b8e6c8091bf4ca9ab02a45f7f4242ddf /kernel/nsproxy.c
parentaef8acd79f363ced098cd3bcde0a5978a52607ad (diff)
downloadlinux-96d88f65adfbcaca153afd7d3e20d74ba379c599.tar.gz
linux-96d88f65adfbcaca153afd7d3e20d74ba379c599.tar.bz2
linux-96d88f65adfbcaca153afd7d3e20d74ba379c599.zip
virtiofs: include a newline in sysfs tag
The internal tag string doesn't contain a newline. Append one when emitting the tag via sysfs. [Stefan] Orthogonal to the newline issue, sysfs_emit(buf, "%s", fs->tag) is needed to prevent format string injection. Signed-off-by: Brian Foster <bfoster@redhat.com> Fixes: a8f62f50b4e4 ("virtiofs: export filesystem tags through sysfs") Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'kernel/nsproxy.c')
0 files changed, 0 insertions, 0 deletions