Skip to content

uucore: add cross-platform effective access - #15294

Open
anastygnome wants to merge 6 commits into
uutils:mainfrom
anastygnome:uucore-effective-access
Open

anastygnome wants to merge 6 commits into
uutils:mainfrom
anastygnome:uucore-effective-access

Conversation

@anastygnome

@anastygnome anastygnome commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Move the effective access to FS to allow usage in all utils, and make the syntax similar to rustix

Copilot AI balanced review requested due to automatic review settings October 13, 2026 04:40

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 reached their quota limit.

@anastygnome
anastygnome force-pushed the uucore-effective-access branch from db11f50 to 4305db5 Compare October 13, 2026 04:54
Copilot AI balanced review requested due to automatic review settings October 13, 2026 04:54

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 reached their quota limit.

@anastygnome
anastygnome force-pushed the uucore-effective-access branch from 4305db5 to d26a8e5 Compare October 13, 2026 05:23
Copilot AI balanced review requested due to automatic review settings October 13, 2026 05:23

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 reached their quota limit.

@codspeed

codspeed Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

⚠️ 124 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

ℹ️ 1 benchmark has no flame graph

The flamegraph could not be generated because too much time was spent in runtime internals, making the visualization not useful for performance analysis.

✅ 401 untouched benchmarks
⏩ 70 skipped benchmarks1


Comparing anastygnome:uucore-effective-access (18a6ab0) with main (865774e)2

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. ↩

  2. No successful run was found on main (1f30787) during the generation of this report, so 865774e was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@anastygnome
anastygnome force-pushed the uucore-effective-access branch 2 times, most recently from 70767b3 to 7d0a39c Compare October 13, 2026 05:28
Copilot AI balanced review requested due to automatic review settings October 13, 2026 06:17
@anastygnome
anastygnome force-pushed the uucore-effective-access branch from 7d0a39c to b48337d Compare October 13, 2026 06:17

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 reached their quota limit.

@anastygnome

anastygnome commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor Author

@cakebaker @sylvestre The lack of effective access checks has caused a lot of issues recently, can you give your opinion on this?

The uucore commit's windows code is functionnally equivalent to the one that was removed in test/platform/windows (second commit)

Copilot AI balanced review requested due to automatic review settings October 14, 2026 06:17
@anastygnome
anastygnome force-pushed the uucore-effective-access branch from b48337d to 23c53ff Compare October 14, 2026 06:17

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 reached their quota limit.

@anastygnome
anastygnome force-pushed the uucore-effective-access branch from 23c53ff to a65613f Compare October 14, 2026 06:21
Copilot AI balanced review requested due to automatic review settings October 14, 2026 06:21

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 reached their quota limit.

@anastygnome

Copy link
Copy Markdown
Contributor Author

@sylvestre This can carry security implications (perms related)

@anastygnome
anastygnome requested a balanced review from Copilot October 14, 2026 06:30

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 reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 14, 2026 06:35
@anastygnome
anastygnome force-pushed the uucore-effective-access branch from a65613f to 78c66e6 Compare October 14, 2026 06:35

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 reached their quota limit.

Copilot AI balanced review requested due to automatic review settings October 14, 2026 06:52
@anastygnome
anastygnome force-pushed the uucore-effective-access branch from 78c66e6 to 16a3b6c Compare October 14, 2026 06:52
Comment thread src/uu/test/src/platform/windows.rs Outdated
@anastygnome
anastygnome force-pushed the uucore-effective-access branch from 10a4365 to cb16698 Compare October 18, 2026 10:49
Copilot AI balanced review requested due to automatic review settings October 18, 2026 10:49

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 reached their quota limit.

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.

@anastygnome
anastygnome requested a review from xtqqczze October 18, 2026 10:50
Comment thread src/uu/sort/src/sort.rs Outdated
Copilot AI balanced review requested due to automatic review settings October 18, 2026 11:10
@anastygnome
anastygnome force-pushed the uucore-effective-access branch from cb16698 to c51f264 Compare October 18, 2026 11:10

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 reached their quota limit.

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.

@anastygnome
anastygnome force-pushed the uucore-effective-access branch from c51f264 to 70c3949 Compare October 18, 2026 11:16
Copilot AI balanced review requested due to automatic review settings October 18, 2026 11:16

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 reached their quota limit.

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.

Copilot AI balanced review requested due to automatic review settings October 18, 2026 11:18
@anastygnome
anastygnome force-pushed the uucore-effective-access branch from 70c3949 to 7514db1 Compare October 18, 2026 11:18

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 reached their quota limit.

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.

@anastygnome
anastygnome force-pushed the uucore-effective-access branch from 7514db1 to 3092412 Compare October 18, 2026 11:22
Copilot AI balanced review requested due to automatic review settings October 18, 2026 12:17
@anastygnome
anastygnome force-pushed the uucore-effective-access branch from 3092412 to b879e98 Compare October 18, 2026 12:17

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 reached their quota limit.

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.

@anastygnome
anastygnome force-pushed the uucore-effective-access branch from b879e98 to 18a6ab0 Compare October 18, 2026 12:36
@anastygnome
anastygnome requested a review from xtqqczze October 18, 2026 16:44
Copilot AI balanced review requested due to automatic review settings October 18, 2026 16:44
@anastygnome
anastygnome force-pushed the uucore-effective-access branch from 18a6ab0 to 1ed6364 Compare October 18, 2026 16:44

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 reached their quota limit.

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