Commit 70bfde3
committed
fix(sandbox): add explicit logging when symlink resolution fails and improve deny messages
When /proc/<pid>/root/ is inaccessible (restricted ptrace, rootless
containers, hardened hosts), resolve_binary_in_container now logs a
per-binary warning with the specific error, the path it tried, and
actionable guidance (use canonical path or grant CAP_SYS_PTRACE).
Previously this was completely silent.
The Rego deny reason for binary mismatches now leads with 'SYMLINK HINT'
and includes a concrete fix command ('readlink -f' inside the sandbox)
plus what to look for in logs if automatic resolution isn't working.1 parent b0b0ebd commit 70bfde3
File tree
3 files changed
+53
-10
lines changed- crates/openshell-sandbox
- data
- src
3 files changed
+53
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
721 | 726 | | |
722 | 727 | | |
723 | 728 | | |
724 | 729 | | |
725 | 730 | | |
726 | | - | |
| 731 | + | |
| 732 | + | |
727 | 733 | | |
728 | 734 | | |
729 | 735 | | |
730 | 736 | | |
731 | | - | |
| 737 | + | |
| 738 | + | |
732 | 739 | | |
733 | 740 | | |
734 | 741 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
649 | | - | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
650 | 669 | | |
651 | 670 | | |
652 | 671 | | |
653 | 672 | | |
654 | 673 | | |
655 | | - | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
656 | 687 | | |
657 | 688 | | |
658 | 689 | | |
| |||
663 | 694 | | |
664 | 695 | | |
665 | 696 | | |
666 | | - | |
| 697 | + | |
667 | 698 | | |
668 | 699 | | |
669 | 700 | | |
| |||
3251 | 3282 | | |
3252 | 3283 | | |
3253 | 3284 | | |
3254 | | - | |
| 3285 | + | |
3255 | 3286 | | |
3256 | 3287 | | |
3257 | 3288 | | |
| |||
3264 | 3295 | | |
3265 | 3296 | | |
3266 | 3297 | | |
3267 | | - | |
3268 | | - | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
3269 | 3305 | | |
3270 | 3306 | | |
3271 | 3307 | | |
| |||
0 commit comments