Revert "virtiofs: forbid newlines in tags"
This reverts commit e07d94ea1d
.
This commit is contained in:
parent
4803ddf965
commit
c193da6e53
1 changed files with 0 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue