summaryrefslogtreecommitdiffstats
path: root/linux-user/linuxload.c
diff options
context:
space:
mode:
authorStefan Hajnoczi2019-03-05 10:32:49 +0100
committerDr. David Alan Gilbert2020-01-23 17:41:36 +0100
commit752272da2b68a2312f0e11fc5303015a6c3ee1ac (patch)
tree9ce46e3e49987b7c2e8c4e87d60530377d38f869 /linux-user/linuxload.c
parentvirtiofsd: prevent ".." escape in lo_do_lookup() (diff)
downloadqemu-752272da2b68a2312f0e11fc5303015a6c3ee1ac.tar.gz
qemu-752272da2b68a2312f0e11fc5303015a6c3ee1ac.tar.xz
qemu-752272da2b68a2312f0e11fc5303015a6c3ee1ac.zip
virtiofsd: prevent ".." escape in lo_do_readdir()
Construct a fake dirent for the root directory's ".." entry. This hides the parent directory from the FUSE client. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Sergio Lopez <slp@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'linux-user/linuxload.c')
0 files changed, 0 insertions, 0 deletions