From fdd338f02b6ca3a4048b21ef08994fa590d81277 Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Mon, 1 Apr 2024 13:35:59 -0600 Subject: [PATCH] Mark risky KNS content By design, these categories of content can run arbitrary code on the system. This makes them security-sensitive and risky, so we need to inform the user about it. Depends on https://invent.kde.org/frameworks/knewstuff/-/merge_requests/309 --- src/kcms/decoration/window-decorations.knsrc.cmake | 1 + src/kcms/effects/kwineffect.knsrc | 1 + src/kcms/scripts/kwinscripts.knsrc | 1 + src/kcms/tabbox/kwinswitcher.knsrc | 1 + src/plugins/kdecorations/aurorae/src/aurorae.knsrc.cmake | 1 + 5 files changed, 5 insertions(+) diff --git a/src/kcms/decoration/window-decorations.knsrc.cmake b/src/kcms/decoration/window-decorations.knsrc.cmake index 4ee3195a76..2dba27b9d3 100644 --- a/src/kcms/decoration/window-decorations.knsrc.cmake +++ b/src/kcms/decoration/window-decorations.knsrc.cmake @@ -62,6 +62,7 @@ Name[zh_CN]=窗口装饰元素 Name[zh_TW]=視窗裝飾 ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml +ContentWarning=Executables Categories=Plasma 6 Window Decorations TargetDir=aurorae/themes Uncompress=archive diff --git a/src/kcms/effects/kwineffect.knsrc b/src/kcms/effects/kwineffect.knsrc index 1a74f740a7..e4c49daf80 100644 --- a/src/kcms/effects/kwineffect.knsrc +++ b/src/kcms/effects/kwineffect.knsrc @@ -58,6 +58,7 @@ Name[zh_CN]=桌面特效 Name[zh_TW]=桌面效果 ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml +ContentWarning=Executables Categories=KWin Effects Plasma 6 StandardResource=tmp Uncompress=kpackage diff --git a/src/kcms/scripts/kwinscripts.knsrc b/src/kcms/scripts/kwinscripts.knsrc index c55ddf6de2..a9483d9510 100644 --- a/src/kcms/scripts/kwinscripts.knsrc +++ b/src/kcms/scripts/kwinscripts.knsrc @@ -53,6 +53,7 @@ Name[zh_CN]=窗口管理器脚本 Name[zh_TW]=視窗管理員指令稿 ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml +ContentWarning=Executables Categories=Kwin Scripts Plasma 6 StandardResource=tmp Uncompress=kpackage diff --git a/src/kcms/tabbox/kwinswitcher.knsrc b/src/kcms/tabbox/kwinswitcher.knsrc index 038ce0f4d1..2260d073f7 100644 --- a/src/kcms/tabbox/kwinswitcher.knsrc +++ b/src/kcms/tabbox/kwinswitcher.knsrc @@ -53,6 +53,7 @@ Name[zh_CN]=窗口管理器切换布局 Name[zh_TW]=視窗切換器佈局 ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml +ContentWarning=Executables Categories=Kwin Switching Layouts Plasma 6 StandardResource=tmp Uncompress=kpackage diff --git a/src/plugins/kdecorations/aurorae/src/aurorae.knsrc.cmake b/src/plugins/kdecorations/aurorae/src/aurorae.knsrc.cmake index d0c7748852..c5fad5faad 100644 --- a/src/plugins/kdecorations/aurorae/src/aurorae.knsrc.cmake +++ b/src/plugins/kdecorations/aurorae/src/aurorae.knsrc.cmake @@ -41,6 +41,7 @@ Name[zh_CN]=Aurorae 极光窗口装饰 Name[zh_TW]=Aurorae 視窗裝飾 ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml +ContentWarning=Executables Categories=Window Decoration Aurorae Uncompress=archive TargetDir=aurorae/themes