Disable default install of pkexec SUID binary as it's an old way of executing a command as another user or with elevated privileges.
Fedora will also avoid installing pkexec[1], and put it in an optional compat RPM package. [1] https://fedoraproject.org/wiki/Changes/polkit_recommends_pkla_pkexec Signed-off-by: Bruno Thomsen <[email protected]> --- rules/polkit.in | 10 ++++++++++ rules/polkit.make | 2 ++ 2 files changed, 12 insertions(+) diff --git a/rules/polkit.in b/rules/polkit.in index 6085fbf783d6..8227cafbcaf8 100644 --- a/rules/polkit.in +++ b/rules/polkit.in @@ -29,4 +29,14 @@ config POLKIT_SYSTEMD help Use systemd for session tracking, else ConsoleKit is used +comment "install options ---" + +config POLKIT_PKEXEC + bool + prompt "Install pkexec" + help + pkexec - Execute a command as another user or with elevated privileges. + + Old and obsolete tool. Use 'sudo' for this kind of task. + endif diff --git a/rules/polkit.make b/rules/polkit.make index 4fa8d9c0edb1..368fbe3e4d3c 100644 --- a/rules/polkit.make +++ b/rules/polkit.make @@ -96,7 +96,9 @@ endif @$(call install_copy, polkit, 0, 0, 0755, -, /usr/libexec/polkitd) # binaries with suid +ifdef PTXCONF_POLKIT_PKEXEC @$(call install_copy, polkit, 0, 0, 4755, -, /usr/bin/pkexec) +endif @$(call install_copy, polkit, 0, 0, 4755, -, \ /usr/libexec/polkit-agent-helper-1) base-commit: 6695ca9ed25a2e4792b8ab9ac38879a4c1939d52 -- 2.35.1
