diff --git a/dcc-network/CMakeLists.txt b/dcc-network/CMakeLists.txt index 7789fdd8..923b2387 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 00000000..d4f7a300 --- /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 9ebbd2e8..d5ea66f4 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 744f1913..81896a7b 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