mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 22:46:14 -05:00
fix: improve the dbus security
This commit is contained in:
1 parent
8fe717d844
commit
829298bb84
6 files changed
+35
-20
No files matched your search
@@ -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>
|
||||
@@ -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