From 868e88d511a0c95623ea1c658cf6a4b55653b4f6 Mon Sep 17 00:00:00 2001 From: Daniel Clavijo Coca Date: Tue, 21 Jul 2026 12:47:28 +0200 Subject: [PATCH] F OpenNebula/one#7673: DPDK live migration --- .gitignore | 1 + roles/openvswitch/tasks/vhost.yml | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 04b8cb82..8494e8b6 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ __pycache__/ .vscode .ansible/ .venv/ +.DS_Store diff --git a/roles/openvswitch/tasks/vhost.yml b/roles/openvswitch/tasks/vhost.yml index c261f82b..13dac980 100644 --- a/roles/openvswitch/tasks/vhost.yml +++ b/roles/openvswitch/tasks/vhost.yml @@ -53,15 +53,20 @@ exit 78 # EREMCHG fi stdin: | - module dpdk_virt 1.0; + module dpdk_virt 1.1; require { type openvswitch_t; type virt_var_run_t; + type svirt_t; + type svirt_tmpfs_t; class dir { search getattr read open }; - class sock_file { write getattr append }; + class sock_file { write getattr append unlink }; + class file { map getattr }; } allow openvswitch_t virt_var_run_t:dir { search getattr read open }; allow openvswitch_t virt_var_run_t:sock_file { write getattr append }; + allow svirt_t virt_var_run_t:sock_file unlink; + allow openvswitch_t svirt_tmpfs_t:file { map getattr }; executable: /bin/bash register: shell_dpdk_virt changed_when: