Skip to content

perms: use the safe traversal on Android too - #16775

Open
sylvestre wants to merge 2 commits into
uutils:mainfrom
sylvestre:perms-safe-traversal-android
Open

sylvestre wants to merge 2 commits into
uutils:mainfrom
sylvestre:perms-safe-traversal-android

Conversation

@sylvestre

Copy link
Copy Markdown
Contributor

Android CI has been failing on main in test_chgrp::test_traverse_symlinks since walkdir was bumped to 2.5.1.

With -L, walkdir 2.5.1 checks for loops against every directory above the walk root and opens each one for reading. On Android a parent like /data is search-only, so the open fails and chgrp -R -L prints Permission denied (os error 13) with no path.

safe_traversal already supports Android; only perms.rs limited it to Linux. Enabling it there removes walkdir from that path and gives Android the same openat-based walk as Linux.

Copilot AI balanced review requested due to automatic review settings November 22, 2026 22:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@xtqqczze

Copy link
Copy Markdown
Collaborator

Fixes #16758.

@codspeed

codspeed Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 50%

1 warning, 1 note

⚠️ 128 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

ℹ️ 1 benchmark has no flamegraph

The flamegraph wasn't generated: most of the time was spent in runtime internals, which would leave nothing useful to analyze.

See affected benchmarks

❌ 4 regressed benchmarks
✅ 409 untouched benchmarks
⏩ 70 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Memory socket_addrs_direct[100000] 8.7 KB 68 KB -87.28%
❌ Memory hostname_ip_lookup[100000] 100.3 KB 159.7 KB -37.17%
❌ Memory timeout_enforced 88.8 KB 101.7 KB -12.73%
❌ Memory du_all_wide_tree[(5000, 500)] 1,010.5 KB 1,127.9 KB -10.41%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing sylvestre:perms-safe-traversal-android (16d242e) with main (8b16a3d)

Open in CodSpeed

Footnotes

  1. 70 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

Copilot AI balanced review requested due to automatic review settings November 23, 2026 08:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants