9pfs: deprecate handle backend
This backend raise some concerns: - doesn't support symlinks - fails +100 tests in the PJD POSIX file system test suite [1] - requires the QEMU process to run with the CAP_DAC_READ_SEARCH capability, which isn't recommended for security reasons This backend should not be used and wil be removed. The 'local' backend is the recommended alternative. [1] https://www.tuxera.com/community/posix-test-suite/ Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
This commit is contained in:
parent
65603a801e
commit
db3b3c7281
@ -657,6 +657,8 @@ static int handle_parse_opts(QemuOpts *opts, FsDriverEntry *fse, Error **errp)
|
|||||||
const char *sec_model = qemu_opt_get(opts, "security_model");
|
const char *sec_model = qemu_opt_get(opts, "security_model");
|
||||||
const char *path = qemu_opt_get(opts, "path");
|
const char *path = qemu_opt_get(opts, "path");
|
||||||
|
|
||||||
|
warn_report("handle backend is deprecated");
|
||||||
|
|
||||||
if (sec_model) {
|
if (sec_model) {
|
||||||
error_report("Invalid argument security_model specified with handle fsdriver");
|
error_report("Invalid argument security_model specified with handle fsdriver");
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -2724,6 +2724,14 @@ default channel subsystem image for guests that do not support multiple
|
|||||||
channel subsystems, all devices can be put into the default channel
|
channel subsystems, all devices can be put into the default channel
|
||||||
subsystem image.
|
subsystem image.
|
||||||
|
|
||||||
|
@subsection -fsdev handle (since 2.12.0)
|
||||||
|
|
||||||
|
The ``handle'' fsdev backend does not support symlinks and causes the 9p
|
||||||
|
filesystem in the guest to fail a fair amount of tests from the PJD POSIX
|
||||||
|
filesystem test suite. Also it requires the CAP_DAC_READ_SEARCH capability,
|
||||||
|
which is not the recommended way to run QEMU. This backend should not be
|
||||||
|
used and it will be removed with no replacement.
|
||||||
|
|
||||||
@section qemu-img command line arguments
|
@section qemu-img command line arguments
|
||||||
|
|
||||||
@subsection convert -s (since 2.0.0)
|
@subsection convert -s (since 2.0.0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user