Commit 29089d3
committed
refactor: secure password transmission by QDBusUnixFileDescriptor
Changed from using base64-encoded password strings to using QDBusUnixFileDescriptor for transmitting passwords during network mount operations
Log: Enhanced security of password transmission in network mounting
Influence:
1. Test network mount with password to ensure successful authentication
2. Verify anonymous mount still works without password
3. Validate password saving functionality when savePasswd is enabled
4. Test mount failure scenarios (wrong password, network error) to ensure error handling
5. Ensure compatibility with existing D-Bus service (MountControl) that expects file descriptor
feat: 在网络挂载中使用文件描述符安全传输密码
将密码传输从 base64 编码字符串改为使用 QDBusUnixFileDescriptor
Log: 改进了网络挂载中密码传输的安全性
Task: https://pms.uniontech.com/task-view-389921.html
Influence:
1. 测试带密码的网络挂载,确保认证成功
2. 验证匿名挂载在无密码时仍能正常工作
3. 验证启用 savePasswd 时的密码保存功能
4. 测试挂载失败场景(错误密码、网络错误)以确保错误处理正常
5. 确保与现有 D-Bus 服务(MountControl)的兼容性,该服务期望接收文件描述符1 parent 66ea1a8 commit 29089d3
1 file changed
Lines changed: 46 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | | - | |
152 | | - | |
153 | | - | |
| 152 | + | |
154 | 153 | | |
155 | 154 | | |
156 | 155 | | |
| |||
471 | 470 | | |
472 | 471 | | |
473 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
474 | 513 | | |
475 | 514 | | |
476 | 515 | | |
477 | 516 | | |
478 | 517 | | |
479 | | - | |
| 518 | + | |
480 | 519 | | |
481 | 520 | | |
482 | 521 | | |
| |||
495 | 534 | | |
496 | 535 | | |
497 | 536 | | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
| 537 | + | |
| 538 | + | |
505 | 539 | | |
506 | 540 | | |
507 | 541 | | |
| |||
517 | 551 | | |
518 | 552 | | |
519 | 553 | | |
520 | | - | |
| 554 | + | |
521 | 555 | | |
522 | 556 | | |
523 | 557 | | |
| |||
0 commit comments