From 0b16ae59137022c583be084c413113f874c536b0 Mon Sep 17 00:00:00 2001 From: Noah Date: Mon, 8 Jan 2024 18:18:27 +1000 Subject: [PATCH] Create rpm-ostree.rules --- .../files/usr/etc/polkit-1/rules.d/rpm-ostree.rules | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 config/files/usr/etc/polkit-1/rules.d/rpm-ostree.rules diff --git a/config/files/usr/etc/polkit-1/rules.d/rpm-ostree.rules b/config/files/usr/etc/polkit-1/rules.d/rpm-ostree.rules new file mode 100644 index 00000000..84515450 --- /dev/null +++ b/config/files/usr/etc/polkit-1/rules.d/rpm-ostree.rules @@ -0,0 +1,11 @@ +/* Allow members of the wheel group to execute the defined actions + * without password authentication, similar to "sudo NOPASSWD:" + */ +polkit.addRule(function(action, subject) { + if ( + action.id == "org.projectatomic.rpmostree1.upgrade" + ) + { + return polkit.Result.YES; + } +});