Введение
Polkit (ранее известный как PolicyKit) – инструмент для управления авторизацией. Он позволяет непривилегированным процессам выполнять действия, требующие права администратора. При этом непривилегированные процессы не наделяются правами администратора.
Программы из polkit:
| polkit | Authorization Manager |
| polkitd | The polkit system daemon |
| pkcheck | Check whether a process is authorized |
| pkaction | Get details about a registered action |
| pkexec | Execute a command as another user |
| pkttyagent | Textual authentication helper |
Приложения, использующие polkit для авторизации
Агент аутентификации
Журналирование
Каталоги и конфигурационные файлы
| /usr/share/polkit-1/actions/ | |
| /usr/share/polkit-1/rules.d/ | |
| /etc/polkit-1/rules.d/ | |
| /etc/polkit-1/localauthority/ /var/lib/polkit-1/localauthority/ | Debian 13: For consistency with upstream and other distributions, the polkit ... as changed the syntax and location for local policy rules. You should now write local rules for customizing the security policy in JavaScript, and place them at /etc/polkit-1/rules.d/*.rules. Previously, rules could be written in pkla format, and placed in subdirectories of /etc/polkit-1/localauthority or /var/lib/polkit-1/localauthority. However, .pkla files should now be considered deprecated, and will only continue to work if the polkitd-pkla package is installed. ...so any local policy overrides will need to be migrated to the JavaScript format. |
| /usr/share/doc/polkitd/examples/ |