mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 06:26:14 -05:00
fix(nix): authorize desktop service outside the FHS sandbox
This commit is contained in:
4 files changed
+52
No files matched your search
@@ -401,6 +401,11 @@
|
||||
export GP_SERVICE_BINARY='@gpservice_public@'
|
||||
export GP_AUTH_BINARY='@gpauth_public@'
|
||||
export GP_GUI_BINARY='${hostGuiLauncher}'
|
||||
if [ "''${1:-}" = "launch-gui" ]; then
|
||||
# Authorization must run before entering Bubblewrap, which disables setuid elevation.
|
||||
export PATH=/run/wrappers/bin:$PATH
|
||||
exec '${prebuiltFiles}/bin/gpclient' "$@"
|
||||
fi
|
||||
exec '${prebuiltCommands.gpclient}/bin/gpclient' "$@"
|
||||
EOF
|
||||
substituteInPlace $out/bin/gpclient \
|
||||
|
||||
Reference in new issue
Block a user