Skip to content

Conversation

@h2zh
Copy link
Contributor

@h2zh h2zh commented Dec 16, 2025

Check if the xrootd user has the required filesystem permissions for the configured capabilities

  • Read+execute permissions for Reads, PublicReads, and Listings capabilities
  • Write+execute permissions for Writes capability
  • Also require storage prefix exists and is a directory

Also update tests to replace made-up storage prefixes with temp directories that have proper permissions, because:

  • Tests run as root, but the permission check simulates what the xrootd daemon user would have. Since xrootd is neither the owner nor in root's group, it falls into the "Others" category. Setting 0777 ensures the "others" bits grant full access (rwx).

h2zh added 2 commits December 15, 2025 22:20
…the configured capabilities

-  Read+execute permissions for Reads, PublicReads, and Listings capabilities
- Write+execute permissions for Writes capability
- Also require storage prefix exists and is a directory
Replace made-up storage prefixes with temp directories that have proper permissions, because:
Tests run as root, but the permission check simulates what the xrootd daemon user would have. Since xrootd is neither the owner nor in root's group, it falls into the "Others" category. Setting 0777 ensures the "others" bits grant full access (rwx).
@h2zh h2zh added this to the v7.23 milestone Dec 16, 2025
@h2zh h2zh added enhancement New feature or request origin Issue relating to the origin component labels Dec 16, 2025
@h2zh h2zh marked this pull request as draft December 16, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request origin Issue relating to the origin component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Try to validate fs permissions against ns capabilities for posix origins

1 participant