Guest User

Untitled

a guest
Jan 14th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.48 KB | None | 0 0
  1. diff --git a/net.c b/net.c
  2. index a187a7b..d0f07d8 100644
  3. --- a/net.c
  4. +++ b/net.c
  5. @@ -755,6 +755,11 @@ void net_host_device_add(Monitor *mon, const QDict *qdict)
  6.      Error *local_err = NULL;
  7.      QemuOpts *opts;
  8.  
  9. +#ifdef CONFIG_SECCOMP
  10. +    fprintf(stderr, "Cannot hotplug TAP device when -sandbox is in effect\n");
  11. +    exit(1);
  12. +#endif
  13. +
  14.      if (!net_host_check_device(device)) {
  15.          monitor_printf(mon, "invalid host network device %s\n", device);
  16.          return;
Add Comment
Please, Sign In to add comment