Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enchance permission string parsing #1565

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

morrone
Copy link
Collaborator

@morrone morrone commented Dec 16, 2024

Enhance the permission string parsing from PR #1564.

Add full checking of the string permission representation: (r|-)(w|-)-(r|-)(w|-)-(r|-)(w|-)- )
Add checking of an octal-number-in-a-string, at least verifying that the number looks like octal, and doesn't have excess digits.
(We could perhaps also verify that the "x" bits are not set, but do not do so in this patch.)

nick-enoent and others added 2 commits December 13, 2024 12:27
Add cache_ip option to aggregators->peers
Update documentation
Update perm_handler() to have stricter error checking by using regex's
for both the perm string format and the perm octal-in-a-string format.
@morrone morrone added this to the v4.4.5 milestone Dec 16, 2024
@nick-enoent
Copy link
Collaborator

@morrone Thanks for throwing this together! I tweaked it to remove python3 octal support as some people found that confusing. I appreciate your help putting this together =)

@tom95858 tom95858 merged commit 5120368 into ovis-hpc:b4.4 Dec 19, 2024
14 checks passed
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