mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
RHEL 8: Reject use of libguestfs-winsupport features except for virt-* tools (RHBZ#1240276).
This commit is contained in:
committed by
Pino Toscano
parent
c35eb71d36
commit
483521478f
@@ -1832,6 +1832,22 @@ and generate_client_actions actions () =
|
||||
check_args_validity c_name style;
|
||||
trace_call name c_name style;
|
||||
|
||||
(* RHEL 8 *)
|
||||
if name = "mount" || name = "mount_ro" || name = "mount_options" ||
|
||||
name = "mount_vfs" then (
|
||||
pr " if (g->program && !STRPREFIX (g->program, \"virt-\")) {\n";
|
||||
pr " CLEANUP_FREE char *vfs_type = guestfs_vfs_type (g, mountable);\n";
|
||||
pr " if (vfs_type && STREQ (vfs_type, \"ntfs\")) {\n";
|
||||
pr " error (g, \"mount: unsupported filesystem type\");\n";
|
||||
pr " if (trace_flag)\n";
|
||||
pr " guestfs_int_trace (g, \"%%s = %%s (error)\",\n";
|
||||
pr " \"%s\", \"-1\");\n" name;
|
||||
pr " return %s;\n" (string_of_errcode errcode);
|
||||
pr " }\n";
|
||||
pr " }\n";
|
||||
pr "\n";
|
||||
);
|
||||
|
||||
(* Calculate the total size of all FileIn arguments to pass
|
||||
* as a progress bar hint.
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user