From c193da6e5307401771c03443972ded87be7f03d6 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:52 +0100 Subject: [PATCH] Revert "virtiofs: forbid newlines in tags" This reverts commit e07d94ea1d433c65366aa21bb6ddfb1685f0f1a8. --- fs/fuse/virtio_fs.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c index ccecf151c..70993572d 100755 --- a/fs/fuse/virtio_fs.c +++ b/fs/fuse/virtio_fs.c @@ -315,16 +315,6 @@ static int virtio_fs_read_tag(struct virtio_device *vdev, struct virtio_fs *fs) return -ENOMEM; memcpy(fs->tag, tag_buf, len); fs->tag[len] = '\0'; - - /* While the VIRTIO specification allows any character, newlines are - * awkward on mount(8) command-lines and cause problems in the sysfs - * "tag" attr and uevent TAG= properties. Forbid them. - */ - if (strchr(fs->tag, '\n')) { - dev_dbg(&vdev->dev, "refusing virtiofs tag with newline character\n"); - return -EINVAL; - } - return 0; }