summaryrefslogtreecommitdiff
path: root/installer/system_files
diff options
context:
space:
mode:
authorTranch <tranch.xiao@gmail.com>2026-07-29 07:16:53 +0800
committerGitHub <noreply@github.com>2026-07-29 07:16:53 +0800
commit7db7f1daeb834bb085cced84763da51ea43e4d62 (patch)
tree9db18e19c560ceca7c5dc1e855b583f3e319988a /installer/system_files
parentfb5d1ee59954d985016f3965184c1f9fa82cdb90 (diff)
parent52379b8b287353eaa139baacc1063ef2b8a7b28f (diff)
downloadAeroCore-OS-7db7f1daeb834bb085cced84763da51ea43e4d62.tar.gz
AeroCore-OS-7db7f1daeb834bb085cced84763da51ea43e4d62.zip
Merge pull request #14 from AeroCore-IO/testing
Enhance Live installer with user authorization and branding updates
Diffstat (limited to 'installer/system_files')
-rw-r--r--installer/system_files/overrides/etc/polkit-1/rules.d/10-aerocore-liveinst.rules10
1 files changed, 10 insertions, 0 deletions
diff --git a/installer/system_files/overrides/etc/polkit-1/rules.d/10-aerocore-liveinst.rules b/installer/system_files/overrides/etc/polkit-1/rules.d/10-aerocore-liveinst.rules
new file mode 100644
index 0000000..0ebcfdd
--- /dev/null
+++ b/installer/system_files/overrides/etc/polkit-1/rules.d/10-aerocore-liveinst.rules
@@ -0,0 +1,10 @@
+// The installer action is privileged by design. Allow only the local,
+// active Live ISO session to launch it without a transient password prompt.
+polkit.addRule(function(action, subject) {
+ if (action.id === "org.fedoraproject.pkexec.liveinst" &&
+ subject.user === "liveuser" &&
+ subject.local === true &&
+ subject.active === true) {
+ return polkit.Result.YES;
+ }
+});