Show Table of Contents
4.11.2. PolicyKit 的變更
先前,PolicyKit 會使用
.pkla 檔案中的金鑰值配對來定義額外的本機認證。Red Hat Enterprise Linux 7 帶入了利用 JavaScript 來定義本機認證的功能,並讓您視需求編寫認證。
polkitd 會以辭彙編纂的的順序由 /etc/polkit-1/rules.d 和 /usr/share/polkit-1/rules.d 目錄中讀取 .rules 檔案。若兩個檔案共享相同的名稱,/etc 中的檔案將會比 /usr 中的檔案預先被處理。當舊的 .pkla 檔案被處理時,最後被處理的規則將會取得優先順序。新的 .rules 檔案則是第一個相符的規則取得優先順序。
遷移過後,您既有的規則將會由
/etc/polkit-1/rules.d/49-polkit-pkla-compat.rules 檔案套用。因此它們能被 /usr 或 /etc 中,名稱以辭彙編纂順序排在 49-polkit-pkla-compat 之前的 .rules 檔案置換。確保您舊規則不會被置換最容易的方式就是將所有其它 .rules 檔案的名稱以 49 以上的數字作為起始。
欲取得更多有關於此的相關資訊,請參閱《Red Hat Enterprise Linux 7 桌面環境遷移和管理指南》,位於〈http://access.redhat.com/site/documentation/Red_Hat_Enterprise_Linux/〉。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.