mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
fix: improve the dbus security
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE busconfig PUBLIC
|
||||
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||
<busconfig>
|
||||
<policy user="root">
|
||||
<allow own="com.yuezk.qt.GPService"/>
|
||||
</policy>
|
||||
|
||||
<policy context="default">
|
||||
<allow send_destination="com.yuezk.qt.GPService"
|
||||
send_interface="com.yuezk.qt.GPService"
|
||||
/>
|
||||
<allow send_destination="com.yuezk.qt.GPService"
|
||||
send_interface="org.freedesktop.DBus.Introspectable"
|
||||
/>
|
||||
</policy>
|
||||
</busconfig>
|
20
GPService/dbus/com.yuezk.qt.GPService.conf.in
Normal file
20
GPService/dbus/com.yuezk.qt.GPService.conf.in
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE busconfig PUBLIC
|
||||
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||
<busconfig>
|
||||
<policy context="default">
|
||||
<deny own="com.yuezk.qt.GPService"/>
|
||||
<deny send_destination="com.yuezk.qt.GPService" />
|
||||
</policy>
|
||||
<policy user="root">
|
||||
<allow own="com.yuezk.qt.GPService"/>
|
||||
<allow send_destination="com.yuezk.qt.GPService" />
|
||||
</policy>
|
||||
|
||||
<!--LOGNAME-->
|
||||
<policy user="@CMAKE_LOGNAME@">
|
||||
<allow own="com.yuezk.qt.GPService"/>
|
||||
<allow send_destination="com.yuezk.qt.GPService" />
|
||||
</policy>
|
||||
</busconfig>
|
Reference in New Issue
Block a user