Blame SOURCES/0256-docs-Stop-using-polkit-pkexec-for-grub-boot-success..patch

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: Hans de Goede <hdegoede@redhat.com>
d9d99f
Date: Fri, 14 Sep 2018 16:39:40 +0200
d9d99f
Subject: [PATCH] docs: Stop using polkit / pkexec for grub-boot-success.timer
d9d99f
 / service
d9d99f
d9d99f
We also want to call grub2-set-bootflag under gdm and pkexec does not
d9d99f
work under gdm because the gdm user has /sbin/nologin as shell.
d9d99f
d9d99f
So instead we are going to install grub2-set-bootflag as suid root,
d9d99f
grub2-set-bootflag was written with this usage in mind, so is safe
d9d99f
to be made suid root.
d9d99f
d9d99f
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
b71686
[rharwood: rebase fuzz around container]
b71686
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
d9d99f
---
b71686
 docs/grub-boot-success.timer | 1 -
b71686
 1 file changed, 1 deletion(-)
d9d99f
d9d99f
diff --git a/docs/grub-boot-success.timer b/docs/grub-boot-success.timer
b71686
index 51d1eb238..406f17200 100644
d9d99f
--- a/docs/grub-boot-success.timer
d9d99f
+++ b/docs/grub-boot-success.timer
b71686
@@ -2,7 +2,6 @@
d9d99f
 Description=Mark boot as successful after the user session has run 2 minutes
d9d99f
 ConditionUser=!@system
b71686
 ConditionVirtualization=!container
d9d99f
-ConditionPathExists=/usr/bin/pkexec
d9d99f
 
d9d99f
 [Timer]
d9d99f
 OnActiveSec=2min