From be9f57dcf96dd195a1028a22bd02f8b611121976 Mon Sep 17 00:00:00 2001 From: Praveen K Paladugu Date: Wed, 31 Jul 2024 15:00:50 +0000 Subject: [PATCH] vmm: Add landlock elements to openapi spec Signed-off-by: Praveen K Paladugu --- vmm/src/api/openapi/cloud-hypervisor.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/vmm/src/api/openapi/cloud-hypervisor.yaml b/vmm/src/api/openapi/cloud-hypervisor.yaml index 27235ad7f..b7074fdb5 100644 --- a/vmm/src/api/openapi/cloud-hypervisor.yaml +++ b/vmm/src/api/openapi/cloud-hypervisor.yaml @@ -626,6 +626,13 @@ components: $ref: "#/components/schemas/PlatformConfig" tpm: $ref: "#/components/schemas/TpmConfig" + landlock_enable: + type: boolean + default: false + landlock_rules: + type: array + items: + $ref: "#/components/schemas/LandlockConfig" description: Virtual machine configuration CpuAffinity: @@ -1261,3 +1268,14 @@ components: properties: socket: type: string + + LandlockConfig: + required: + - path + - access + type: object + properties: + path: + type: string + access: + type: string