From d47686efd9a9e5753d6cb757e1523c38d238118a Mon Sep 17 00:00:00 2001 From: nocode Date: Wed, 8 Jul 2026 23:58:03 +0200 Subject: [PATCH] feat(polkit): add gameboot polkit policy for fws-gameboot execution Add PolicyKit policy configuration that authorizes gameboot launchers (desktop entries) to execute /usr/local/bin/fws-gameboot via pkexec. The policy allows active users (physically present) to switch to Windows without password prompt since the switch is non-destructive (FWS hibernates and restores the session on return). Remote or inactive sessions require admin authentication. --- .../polkit-1/actions/org.fws.gameboot.policy | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 configs/releng/airootfs/usr/share/polkit-1/actions/org.fws.gameboot.policy diff --git a/configs/releng/airootfs/usr/share/polkit-1/actions/org.fws.gameboot.policy b/configs/releng/airootfs/usr/share/polkit-1/actions/org.fws.gameboot.policy new file mode 100644 index 0000000..def8a03 --- /dev/null +++ b/configs/releng/airootfs/usr/share/polkit-1/actions/org.fws.gameboot.policy @@ -0,0 +1,29 @@ + + + + + FWS + + Basculer vers Windows pour jouer (gameboot) + Switch to Windows to play (gameboot) + Authentification requise pour basculer vers Windows + Authentication is required to switch to Windows + fws-gameboot + + auth_admin + auth_admin + yes + + /usr/local/bin/fws-gameboot + +