From 7868982f8542d305aef453b5b5912b7aa0e512d8 Mon Sep 17 00:00:00 2001 From: fuleyi Date: Thu, 13 Aug 2026 18:47:27 +0800 Subject: [PATCH] chore: add airplane mode interface permission declaration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Register org.deepin.dde.AirplaneMode1 for security-loader access 2. Install the permission config with the control center network plugin 3. Include the permission interface directory in the Debian package Log: Allow control center to switch airplane mode through security-loader Influence: 1. Verify the control center network panel opens normally 2. Verify airplane mode can be enabled and disabled 3. Verify Wi-Fi and Bluetooth follow airplane mode state changes chore: 添加网络模块飞行模式接口权限声明 1. 为 security-loader 注册 org.deepin.dde.AirplaneMode1 2. 随控制中心网络插件安装权限配置文件 3. 在 Debian 软件包中包含权限接口配置目录 Log: 允许控制中心通过 security-loader 切换飞行模式 Influence: 1. 验证控制中心网络面板可以正常打开 2. 验证飞行模式可以正常开启和关闭 3. 验证 Wi-Fi 和蓝牙状态随飞行模式正确变化 PMS: TASK-393313 --- dcc-network/CMakeLists.txt | 4 ++++ .../permission-interfaces/org.deepin.dcc-network.json | 11 +++++++++++ debian/control | 9 +++++---- debian/dcc-network-plugin.install | 1 + 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 dcc-network/misc/permission-interfaces/org.deepin.dcc-network.json diff --git a/dcc-network/CMakeLists.txt b/dcc-network/CMakeLists.txt index 7789fdd85..923b23874 100644 --- a/dcc-network/CMakeLists.txt +++ b/dcc-network/CMakeLists.txt @@ -72,4 +72,8 @@ target_link_libraries(${DccNetwork_Name} PRIVATE dcc_install_plugin(NAME ${DccNetwork_Name} TARGET ${DccNetwork_Name}) +# security loader permission interfaces config +install(FILES "misc/permission-interfaces/org.deepin.dcc-network.json" + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/dde-control-center/permission-interfaces) + dcc_handle_plugin_translation(NAME ${DccNetwork_Name} ) diff --git a/dcc-network/misc/permission-interfaces/org.deepin.dcc-network.json b/dcc-network/misc/permission-interfaces/org.deepin.dcc-network.json new file mode 100644 index 000000000..d4f7a3000 --- /dev/null +++ b/dcc-network/misc/permission-interfaces/org.deepin.dcc-network.json @@ -0,0 +1,11 @@ +{ + "version": "1.0", + "description": "网络插件需要授权的 D-Bus 系统服务接口", + "DestList": [ + { + "DbusName": "org.deepin.dde.AirplaneMode1", + "DbusPath": "/org/deepin/dde/AirplaneMode1", + "DbusInterface": "org.deepin.dde.AirplaneMode1" + } + ] +} diff --git a/debian/control b/debian/control index 9ebbd2e88..d5ea66f47 100644 --- a/debian/control +++ b/debian/control @@ -52,25 +52,26 @@ Depends: ${misc:Depends}, network-manager-openconnect, network-manager-strongswan | libreswan (>=4.12), network-manager-sstp, - libdde-network-core (= ${binary:Version}) + libdde-network-core (= ${binary:Version}), + dde-daemon (>= 6.1.102) Description: the plugin of network for dde control center dcc-network-plugin module Package: dock-network-plugin Architecture: any -Depends: ${misc:Depends},${shlibs:Depends},libdde-network-core (= ${binary:Version}) +Depends: ${misc:Depends},${shlibs:Depends},libdde-network-core (= ${binary:Version}),dde-daemon (>= 6.1.102) Description: the plugin of network for dde-dock dock-plugin module Package: dss-network-plugin Architecture: any -Depends: ${misc:Depends},${shlibs:Depends},libdde-network-core (= ${binary:Version}) +Depends: ${misc:Depends},${shlibs:Depends},libdde-network-core (= ${binary:Version}),dde-daemon (>= 6.1.102) Description: the plugin of network for dde-lock dss-network-plugin module Package: deepin-service-plugin-network Architecture: any -Depends: ${misc:Depends},${shlibs:Depends},curl +Depends: ${misc:Depends},${shlibs:Depends},curl,dde-daemon (>= 6.1.102) Breaks: dde-daemon (<<6.1.58) Replaces: dde-daemon (<<6.1.58) Description: the plugin of network service for deepin-service-manager diff --git a/debian/dcc-network-plugin.install b/debian/dcc-network-plugin.install index 744f19136..81896a7b0 100644 --- a/debian/dcc-network-plugin.install +++ b/debian/dcc-network-plugin.install @@ -1,2 +1,3 @@ usr/lib/*/dde-control-center usr/share/dde-control-center/translations +usr/share/dde-control-center/permission-interfaces