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

SFTP Regular Files #630

Merged
merged 3 commits into from
Dec 7, 2023
Merged

SFTP Regular Files #630

merged 3 commits into from
Dec 7, 2023

Conversation

ejohnstown
Copy link
Contributor

Server and client to check files to see if they are regular files before opening them for transfers. Disallows device files like /dev/random or /dev/zero.

1. When getting a file with SFTP, the client should check that the
   requested file is a regular file based on its attributes.
2. Add the attributes to check in the permissions.
3. Add a new error for a non-regular file.
1. When putting a file with SFTP, the client should check that the
   requested file is a regular file based on its attributes.
 2. Add the attributes to check in the permissions.
 3. Add server checking for non-regular files and not allowing them to
    be opened for reading or writing.
When populating the file permission status for a file vs directory in
the zephyr porting, use the new constants for the file permissions being
a regular file or directory. Not (the wrong) bare numbers.
@JacobBarthelmeh JacobBarthelmeh merged commit bb62158 into wolfSSL:master Dec 7, 2023
10 checks passed
@ejohnstown ejohnstown deleted the sftp-zero branch December 7, 2023 18:57
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