Commit ad79863
committed
refactor: migrate from pkla to polkit rules format
Changed disk encryption authentication from deprecated PKLA format
to modern Polkit JavaScript rules format. Updated CMake installation
configuration to install rules in new standard location (/usr/
share/polkit-1/rules.d) instead of old location (/etc/polkit-1/
localauthority/10-vendor.d). Removed old pkla file completely.
This change was made because PKLA format has been deprecated in favor
of JavaScript rules format which provides more flexibility and is the
current standard for Polkit authentication rules. The new format follows
modern Linux security practices and maintains better compatibility with
newer Polkit versions.
Influence:
1. Verify disk encryption functionality still works properly
2. Test authentication prompts appear/disappear as expected
3. Check system logs for any Polkit-related errors
4. Confirm rules file exists in correct location (/usr/share/polkit-
1/rules.d)
5. Test with different user permissions scenarios
refactor: 从 pkla 迁移到 polkit 规则格式
将磁盘加密认证从已废弃的 PKLA 格式改为现代的 Polkit JavaScript 规则格
式。更新了 CMake 安装配置,将规则安装到新的标准位置(/usr/share/polkit-1/
rules.d)而非旧位置(/etc/polkit-1/localauthority/10-vendor.d)。完全移除了
旧的 pkla 文件。
进行此更改是因为 PKLA 格式已被废弃,转而支持 JavaScript 规则格式,后者提
供了更大的灵活性且是当前 Polkit 认证规则的标准。新格式遵循现代 Linux 安
全实践,并与较新的 Polkit 版本保持更好的兼容性。
Influence:
1. 验证磁盘加密功能仍正常工作
2. 测试认证提示是否按预期出现/消失
3. 检查系统日志是否有 Polkit 相关错误
4. 确认规则文件存在于正确位置(/usr/share/polkit-1/rules.d)
5. 使用不同用户权限场景进行测试1 parent ab5b545 commit ad79863
File tree
4 files changed
+33
-16
lines changed- debian
- src/services/diskencrypt
- polkit/rules
4 files changed
+33
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
33 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments