From 1a4156209399d6260d714644f8e12c0af937f4b0 Mon Sep 17 00:00:00 2001 From: Samuele Pedroni Date: Wed, 9 Oct 2024 15:01:07 +0200 Subject: [PATCH] interfaces: allow kernels to have content slots --- interfaces/builtin/content.go | 1 + interfaces/policy/basedeclaration_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/interfaces/builtin/content.go b/interfaces/builtin/content.go index 836956fa621..37c56ea145c 100644 --- a/interfaces/builtin/content.go +++ b/interfaces/builtin/content.go @@ -41,6 +41,7 @@ const contentBaseDeclarationSlots = ` slot-snap-type: - app - gadget + - kernel allow-connection: plug-attributes: content: $SLOT(content) diff --git a/interfaces/policy/basedeclaration_test.go b/interfaces/policy/basedeclaration_test.go index df8269d8af9..b4fbd7ec2ca 100644 --- a/interfaces/policy/basedeclaration_test.go +++ b/interfaces/policy/basedeclaration_test.go @@ -807,7 +807,7 @@ var ( "bluez": {"app", "core"}, "bool-file": {"core", "gadget"}, "browser-support": {"core"}, - "content": {"app", "gadget"}, + "content": {"app", "gadget", "kernel"}, "core-support": {"core"}, "cups": {"app"}, "cups-control": {"app", "core"},