Polkit

polkit
Developer(s)David Zeuthen, Red Hat
Initial release0.3[1] Edit this on Wikidata
Stable release
125[2] Edit this on Wikidata / 8 August 2024; 2 months ago (8 August 2024)
Repository
Written inC
Operating systemLinux, Unix-like
TypePrivilege authorization
LicenseLGPL (free software)
Websitegithub.com/polkit-org/polkit

Polkit (formerly PolicyKit) is a component for controlling system-wide privileges in Unix-like operating systems. It provides an organized way for non-privileged processes to communicate with privileged ones. Polkit allows a level of control of centralized system policy. It is developed and maintained by David Zeuthen from Red Hat and hosted by the freedesktop.org project. It is published as free software under the terms of version 2 of the GNU Lesser General Public License.[3]

Since version 0.105, released in April 2012,[4][5] the name of the project was changed from PolicyKit to polkit to emphasize that the system component was rewritten[6] and that the API had changed, breaking backward compatibility.[7][dubiousdiscuss]

Fedora became the first distribution to include PolicyKit, and it has since been used in other distributions, including Ubuntu since version 8.04 and openSUSE since version 10.3. Some distributions, like Fedora,[8] have already switched to the rewritten polkit.

It is also possible to use polkit to execute commands with elevated privileges using the command pkexec followed by the command intended to be executed (with root permission).[9] However, it may be preferable to use sudo, as this command provides more flexibility and security, in addition to being easier to configure.[10]

  1. ^ "PolicyKit 0.3". 20 June 2007. Retrieved 17 July 2024.
  2. ^ "Release 125". 8 August 2024. Retrieved 8 August 2024.
  3. ^ "polkit Git COPYING". David Zeuthen. Retrieved 15 November 2012.
  4. ^ "polkit Git NEWS". David Zeuthen. Retrieved 15 November 2012.
  5. ^ "Polkit releases". Retrieved 1 September 2018.
  6. ^ "Chapter 9. PolicyKit". openSUSE Security Guide. Novell, Inc. and contributors. Archived from the original on 27 August 2012. Retrieved 15 November 2012.
  7. ^ "Polkit and KDE: let's make the point of the situation". 22 December 2009. Retrieved 15 November 2012.
  8. ^ "Features/PolicyKitOne". Fedora Project Wiki. Retrieved 15 November 2012.
  9. ^ "pkexec". polkit Reference Manual. Retrieved 25 May 2013.
  10. ^ "When to use pkexec vs. gksu/gksudo?". Retrieved 25 May 2013.