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 parent
8fe717d844
commit
829298bb84
6 files changed
+35
-20
No files matched your search
@@ -1,8 +1,11 @@
|
||||
post_install() {
|
||||
# Update the the dbus user to logname
|
||||
sed -i "/LOGNAME/N;s/user=\".*\"/user=\"$(logname)\"/" /usr/share/dbus-1/system.d/com.yuezk.qt.GPService.conf
|
||||
|
||||
systemctl enable gpservice.service
|
||||
systemctl restart gpservice.service
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user