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.[1]

polkit
GNOME-based front-end, as seen in Ubuntu
Developer(s)David Zeuthen, Red Hat
Repository
Written inC
Operating systemUnix-like
TypePrivilege authorization
LicenseLGPL (free software)
Websitegitlab.freedesktop.org/polkit/polkit/
KDE-based front-end.

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

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,[6] 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).[7] However, it may be preferable to use sudo, as this command provides more flexibility and security, in addition to being easier to configure.[8]

Implementation

The polkitd daemon implements Polkit functionality.[9]

See also

References

  1. "polkit Git COPYING". David Zeuthen. Retrieved 2012-11-15.
  2. "polkit Git NEWS". David Zeuthen. Retrieved 2012-11-15.
  3. "Polkit releases". Retrieved 2018-09-01.
  4. "Chapter 9. PolicyKit". openSUSE Security Guide. Novell, Inc. and contributors. Archived from the original on 2012-08-27. Retrieved 2012-11-15.
  5. "Polkit and KDE: let's make the point of the situation". Retrieved 2012-11-15.
  6. "Features/PolicyKitOne". Fedora Project Wiki. Retrieved 2012-11-15.
  7. "pkexec". polkit Reference Manual. Retrieved 2013-05-25.
  8. "When to use pkexec vs. gksu/gksudo?". Retrieved 2013-05-25.
  9. Команда разработчиков BLFS (5 September 2017). "4: Bezopasnost'". За пределами проекта "Linux® с нуля". Версия 7.4 [Beyond Linux from scratch] (in Russian). 1. Moscow: Litres (published 2017). p. 169. ISBN 9785457831186. Retrieved 2017-09-05.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.