mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
fix: rollback dbus configuration
This commit is contained in:
parent
fb2b148b72
commit
9c9b42b87f
@ -3,18 +3,16 @@
|
|||||||
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
|
||||||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||||
<busconfig>
|
<busconfig>
|
||||||
<policy context="default">
|
<policy user="root">
|
||||||
<deny own="com.yuezk.qt.GPService"/>
|
<allow own="com.yuezk.qt.GPService"/>
|
||||||
<deny send_destination="com.yuezk.qt.GPService" />
|
</policy>
|
||||||
</policy>
|
|
||||||
<policy user="root">
|
|
||||||
<allow own="com.yuezk.qt.GPService"/>
|
|
||||||
<allow send_destination="com.yuezk.qt.GPService" />
|
|
||||||
</policy>
|
|
||||||
|
|
||||||
<!--LOGNAME-->
|
<policy context="default">
|
||||||
<policy user="@CMAKE_LOGNAME@">
|
<allow send_destination="com.yuezk.qt.GPService"
|
||||||
<allow own="com.yuezk.qt.GPService"/>
|
send_interface="com.yuezk.qt.GPService"
|
||||||
<allow send_destination="com.yuezk.qt.GPService" />
|
/>
|
||||||
</policy>
|
<allow send_destination="com.yuezk.qt.GPService"
|
||||||
|
send_interface="org.freedesktop.DBus.Introspectable"
|
||||||
|
/>
|
||||||
|
</policy>
|
||||||
</busconfig>
|
</busconfig>
|
||||||
|
11
debian/postinst
vendored
11
debian/postinst
vendored
@ -1,11 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Update the the dbus user to logname
|
|
||||||
dbus_conf=/usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
|
|
||||||
if [ -f $dbus_conf ]; then
|
|
||||||
sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" $dbus_conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
#DEBHELPER#
|
|
@ -1,7 +1,4 @@
|
|||||||
post_install() {
|
post_install() {
|
||||||
# Update the the dbus user to logname
|
|
||||||
sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
|
|
||||||
|
|
||||||
systemctl enable gpservice.service
|
systemctl enable gpservice.service
|
||||||
systemctl restart gpservice.service
|
systemctl restart gpservice.service
|
||||||
}
|
}
|
||||||
|
@ -33,8 +33,6 @@ A GlobalProtect VPN client (GUI) for Linux based on OpenConnect and built with Q
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
|
|
||||||
sed -i "/LOGNAME/,+1s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
|
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%service_add_post gpservice.service
|
%service_add_post gpservice.service
|
||||||
%else
|
%else
|
||||||
|
Loading…
Reference in New Issue
Block a user