Skip to content

Commit

Permalink
chore: 修改ipwatchD 接口风格
Browse files Browse the repository at this point in the history
修改ipwatchD 接口风格
  • Loading branch information
fuleyi committed Sep 5, 2024
1 parent 0fbeee3 commit e364828
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/plugin-sdbus/plugin-ipwatchd/org.deepin.ipwatchd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@

<!-- Only root can own the service -->
<policy user="root">
<allow own="com.deepin.system.IPWatchD"/>
<allow send_destination="com.deepin.system.IPWatchD"/>
<allow own="org.deepin.dde.IPWatchD1"/>
<allow send_destination="org.deepin.dde.IPWatchD1"/>
</policy>

<!-- Allow anyone to invoke methods on the interfaces -->
<policy context="default">
<allow send_destination="com.deepin.system.IPWatchD"
<allow send_destination="org.deepin.dde.IPWatchD1"
send_interface="org.freedesktop.DBus.Introspectable"/>

<allow send_destination="com.deepin.system.IPWatchD"
<allow send_destination="org.deepin.dde.IPWatchD1"
send_interface="org.freedesktop.DBus.Peer"/>

<allow send_destination="com.deepin.system.IPWatchD"
<allow send_destination="org.deepin.dde.IPWatchD1"
send_interface="org.freedesktop.DBus.Properties"/>

<allow send_destination="com.deepin.system.IPWatchD"
send_interface="com.deepin.system.IPWatchD"/>
<allow send_destination="org.deepin.dde.IPWatchD1"
send_interface="org.deepin.dde.IPWatchD1"/>

</policy>

Expand Down
2 changes: 1 addition & 1 deletion src/plugin-sdbus/plugin-ipwatchd/plugin-ipwatchd.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "com.deepin.system.IPWatchD",
"name": "org.deepin.dde.IPWatchD1",
"group": "core",
"libPath": "libplugin-ipwatchd.so",
"policyVersion": "1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/plugin-sdbus/plugin-ipwatchd/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

static sd_bus *dbus = NULL;
sd_bus_slot *slot = NULL;
static char *dbus_path = "/com/deepin/system/IPWatchD";
static char *dbus_interface = "com.deepin.system.IPWatchD";
static char *dbus_path = "/org/deepin/dde/IPWatchD1";
static char *dbus_interface = "org.deepin.dde.IPWatchD1";
static const sd_bus_vtable ipwatchd_vtable[] = {
SD_BUS_VTABLE_START(0),
SD_BUS_METHOD("RequestIPConflictCheck", "ss","s",ipwd_conflict_check, SD_BUS_VTABLE_UNPRIVILEGED),
Expand Down

0 comments on commit e364828

Please sign in to comment.