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

Added File.stream/.stream! to Traversal check #151

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

jcowgar
Copy link
Contributor

@jcowgar jcowgar commented Jan 2, 2024

stream functions were missing from the File traversal checks. This adds them. Checking for stream is as important as open.

@houllette
Copy link
Contributor

This is a great add - thanks for catching this and opening the PR, @jcowgar!

@houllette houllette merged commit 30b17cc into nccgroup:master Jan 3, 2024
9 checks passed
@jcowgar
Copy link
Contributor Author

jcowgar commented Jan 3, 2024

There were a few others missing from the File traversal checks, I was unsure if I should add them all or not. For example, chgrp, rename, rm_rf!, and touch. Also was not sure if ls should be added. You can access the file system that way, but not alter it. Wasn't sure how paranoid the check should be.

Let me know, I'd be happy to open another PR if desired.

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.

2 participants