]> Git Repo - qemu.git/commit
virtiofsd: validate path components
authorStefan Hajnoczi <[email protected]>
Tue, 26 Feb 2019 17:58:59 +0000 (17:58 +0000)
committerDr. David Alan Gilbert <[email protected]>
Thu, 23 Jan 2020 16:41:36 +0000 (16:41 +0000)
commit25dae28c58d7e706b5d5db99042c9db3cef2e657
tree7e5cfc815d3541e43703e8af81e23e3015edce63
parent5fe319a7b19c9c328e6e061bffcf1ff6cc8b89ce
virtiofsd: validate path components

Several FUSE requests contain single path components.  A correct FUSE
client sends well-formed path components but there is currently no input
validation in case something went wrong or the client is malicious.

Refuse ".", "..", and paths containing '/' when we expect a path
component.

Signed-off-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Daniel P. BerrangĂ© <[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
tools/virtiofsd/passthrough_ll.c
This page took 0.024409 seconds and 4 git commands to generate.